You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to control activities from the calling workflow or from other workflows.
Cancel - semantic cancellation, throws an error
Fail - throw error
Complete - successful result
Intrinsic
api.any(async()=>{// or event handler or workflowawaitcancelActivity(activityToken,reason);awaitfailActivity(activityToken,error,message);awaitcompleteActivity(activityToken,result);})
Instance
constmyAct=activity(...);workflow(()=>{// start activityconstactInstance=myAct();// cancel, error, or complete the workflowawaitactInstance.cancel(reason);awaitactInstance.fail(newError());// or actInstance.fail(error, message);awaitactInstance.complete(result);awaitactInstance;});
The text was updated successfully, but these errors were encountered:
It should be possible to control activities from the calling workflow or from other workflows.
Intrinsic
Instance
The text was updated successfully, but these errors were encountered: