Studio Workflow Run Workflow Async?
Date: 2023-06-28
Viewers: HTML5 and WebViewer
Hello, I've been testing if there is some way to launch a client workflow, then run a another workflow, client or server, async. We do this with essential workflows as it allows a user to submit a request, get notification that their request was received and then go on their way. Users could either leave the page or use the UI which had been freed up by handing the real work off to an async workflow.
Is there a way to run a studio workflow asynchronous? Does a studio workflow always require a presence in the viewer UI? Is there some work around I haven't tried yet?
-
VS WFs can be run asynchronously.
In VS Web and Mobile, use the workflow.run command with the async argument; you don't need to include a WF component just for it but you will need to target a component to host the client WF in your command if you don't. I personally find it easier to just include a component because it makes the command easier to write, if you have nothing to render then the UI won't do anything and your users will be none the wiser.
In GCE, there's the RunWorkflowByUrl command but I vaguely recall having some difficulty there which might've been asynchronicity (might've been something elselike calling a WF from a feature popup though)... I worked around it by wrapping the VS WF in an Essentials WF.
0
Please sign in to leave a comment.
Comments
1 comment