how to put variables in an instance ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2014 10:32 AM
Hello
I wanted to know if it exists a way to give the workflow global variables like :
formService.submitTaskFormData(String taskId, Map<String,String> );
but with a Map<String, object> like at the moment we launch a workflow instance.
Thanks for your help
I wanted to know if it exists a way to give the workflow global variables like :
formService.submitTaskFormData(String taskId, Map<String,String> );
but with a Map<String, object> like at the moment we launch a workflow instance.
Thanks for your help
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2014 06:14 AM
Use runtimeService.startWorkflowByKey("key", mapOfVariables); or related methods.
Alternatively, you can use runtimeService.setVariables(processInstance.getId(), mapOfVariables); or related methods.
Alternatively, you can use runtimeService.setVariables(processInstance.getId(), mapOfVariables); or related methods.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2014 10:53 PM
Is it possible to store the variables in the bpmn define file?
Regards!
Regards!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2014 02:18 AM
Hi,
BPMN file defines the process. Variables definition can be part of the activiti extensions in BPMN file (e.g. form properties). BPMN file itself does not contain variable definition section.
It is not possible to store variable instances in the BPMN process definition.
Regards
Martin
BPMN file defines the process. Variables definition can be part of the activiti extensions in BPMN file (e.g. form properties). BPMN file itself does not contain variable definition section.
It is not possible to store variable instances in the BPMN process definition.
Regards
Martin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2014 03:59 AM
How about some global constants? In my application, we have logic that when a process instance run to some user task, the associated business application form is unchangeable. No I put the unchangeable flag in the user task's form, but I think a setting for the user task in the bpmn diagram xml will be better.
Regards!
Regards!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2014 04:09 AM
You can make your process take different paths, depending on a variable (e.g. value filled in in an earlier form). Depending on that, you can direct the flow to either a task with a editable form and in the other case, a task with a read-only form.