I have a workflow and as part of it, there is a form with Submit button.
Once the user fills the information and clicks submit, I am expecting the form to close(Home screen) and tasks like perform maintenance to run in background.
Instead until the perform maintenance task gets completed, the form is frozen. I have added the variable and added foreground provisioning to subprocess also.
<Variable editable="true" initializer="false" name="foregroundProvisioning">
<Description>Normally provisioning is done in a step that uses the &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;background&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
option to force the workflow to be suspend and be resumed in a
background task thread. This prevents the browser session from
hanging since provision can sometimes take a long time. For demos
and testing it can be better to do this in the foreground so that
provisioning will have been performed when control is returned to the
user. This prevents having to run the Perform Maintenance task to
see the results of the request.</Description>
</Variable>
Added to subprocess in the workflow:
<Arg name="foregroundProvisioning" value="ref:foregroundProvisioning"/>