create process workFlow Manager variable using code

Confluence User - 19 Dec, 2023

hello guys, can I create workflow variable programmatically like when created in process design.


if this option was not exist already in joget, it is so helpful to create this method. 

i was too lazy to dive in system and make it.


by the way can we create process element's Router and Activity with paths conduction programmatically.

best for you guys 

plugins;process;workflow;workflow_variable

2


21 Dec, 2023
confluenceUser
confluenceUser

Hi, you need to predefine workflow variables in your process design. Once it is defined, you can programmatically set the value using Setting Workflow Variable Value in Process Tool Bean Shell. Routes and activities also need to be predefined in your process design.

23 Dec, 2023
confluenceUser
confluenceUser

hello, thank you for interested and response, yes I am used this scenario already 
and I use this Method for change the variable :

WorkflowManager#processVariable 

what I want : predefine workflow variables in my code (beanShell or plugin).

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print