cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dispatch current transaction from macro

Solved
Highlighted
Occasional Contributor

Dispatch current transaction from macro

We have a workflow and we observe many users complain they have sent for validation, But users forget to dispatch frequently. Can we write a macro on workflow transition to dispatch the transaction of the user. Can we have a example how we dispatch .

 

9 Replies
Highlighted
MEGA

Re: Dispatch current transaction from macro

In standard there is an option on the "Transition". (see screenshot)

 

Execution Kind = Immediate or In Public

 

You should double check the configuration of your workflow to see how it is configured.

 

If it doesn't do what you want just add an "actions" on the transition were you create a macro that do what you want.

 

Highlighted
Occasional Contributor

Re: Dispatch current transaction from macro

There is no issue to trigger action or macro. But we would like to force dispatch user transaction after action is triggered. We wanted to know if dispatch is possible from api ( to dispatch current transaction)
MEGA

Re: Dispatch current transaction from macro

Option 1 : ue the standard option that don't need the dispatch to be dispatched. It should do exactly what you want.

 

Option 2 : If it does not you can envision a macro that dispatch. And yes there is an API to dispatch. I do not recommend it.

Highlighted
Occasional Contributor

Re: Dispatch current transaction from macro

Can you please explain how to use standard option and or enable it? We have not used it anytime
Highlighted
MEGA

Re: Dispatch current transaction from macro

Check my previous post with the screenshot and compare with your current workflow configuration.

 

Check also the online documentation on the workflow

Highlighted
Occasional Contributor

Re: Dispatch current transaction from macro

We used execution kind immediate and using public workspace also , the users need to explicitly click on save for other users to see the workflow status change. It is the same issue as dispatch save needs to be clicked in the menu.
Highlighted
MEGA

Re: Dispatch current transaction from macro

then you need to create a macro that do a save after the transition is being executed.

Highlighted
MEGA

Re: Dispatch current transaction from macro

Here is an example of a VB Script Macro on a transition that do a dispatch.

 

Function ExecuteAction(objWorkflowContextAction, strParameter)

 

Dim mgRoot
Set mgRoot = objWorkflowContextAction.GetRoot

Dim response
response = mgRoot.CallFunction("~lcE6jbH9G5cK[PublishStayInSessionWizard Command Launcher]", "{""instruction"":""PUBLISHINSESSION""}")

Set mgRoot = Nothing


ExecuteAction= ""

End Function

Highlighted
Occasional Contributor

Re: Dispatch current transaction from macro

Thank you , The solution worked.