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

Dispatch current transaction from macro

saikrishna7978
Super Contributor

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 .

 

10 Replies

JavidZahid
MEGA Partner
MEGA Partner

Hi,

We need this same thing also. Means we need each workflow transition to be dispatched after each workflow action performed by user. We have applied above suggested solution but it did not worked for us. 

 

Any suggestions.?

 

Thanks.

Thank you , The solution worked.

 

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

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

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.

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

 

Check also the online documentation on the workflow

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

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.

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)

oguimard
Retired

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.