Clearing the execution variables before completing the task
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2013 02:01 AM
Hi,
I'm setting the few variables in serviceTask before starting the userTask. On some condition in the flow I want to clear the delegateExecution variables and set the new one's.
Ex : execution.setVariable("name","Jhon");
how do I clear this ?
even If I'm overwriting it I'm only getting the previously set value.
Tried removing the variables with execution.removeVariables() and removeVariablesLocal() but no luck.
Can anyone help me out…
Regards,
Nirvana.
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2013 04:37 AM
removeVariable should do the trick. Where are you calling this code?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2013 06:14 AM
Thanks for the reply.
I'm using this in ServiceTask - JavaDelegate.execute() method before completing the task.
I'm using this in ServiceTask - JavaDelegate.execute() method before completing the task.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2013 06:14 AM
Thanks for the reply.
I'm using this in ServiceTask - JavaDelegate.execute() method before completing the task.
I'm using this in ServiceTask - JavaDelegate.execute() method before completing the task.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2013 10:04 AM
Setting variables from within a service-task should just work. Make sure you're using the right scope - setVariableLocal() and setVariable() are different. Local set a variable on the local execution, the latter will set the variable higher in the execution-tree (most of the times, on process-scope).
