Is it possible to use dynamic formkey for user tasks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2015 05:13 AM
Am creating a workflow to deploy in alfresco. In this one user task formkey is depends on one field selected by the initiator. Is it possible to dynamically assign the formkey for a usertask?
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2015 06:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2015 09:10 AM
I tried to do with this using a variable like below
<code>
<userTask id="usertask1" name="User Task" activiti:candidateGroups="${agrmnt_management_execgp}" activiti:formKey="${agrmnt_management_exec_form}"></userTask>
</code>
and the form key is assigned by a service task as below
execution.setVariable("agrmnt_director_form","agrmnt

but its not working. the group id for the task got worked .
please help to sort this out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2015 06:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2015 09:26 AM
Both agrmnt_management_exec_form and director form were there . Unfortunately i written the script mistakenly . i used the script as below
<code>
execution.setVariable("agrmnt_management_exec_form","agrmnt:ManagementExecutive"+(String) execution.getVariables().get("agrmnt_agreement_type"));
</code>
But its showing an error as
ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 0815430674 Wrapped Exception (with status template): Namespace prefix ${agrmnt is not mapped to a namespace URI
org.springframework.extensions.webscripts.WebScriptException: 0815430674 Wrapped Exception (with status template): Namespace prefix ${agrmnt is not mapped to a namespace URI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2017 02:18 AM
Hi,
Anybody has a working solution. ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2017 02:53 PM
Seems to be working fine for me on Activiti 6 Beta.
I have a simple process:
I define a variable in the init script:
execution.setVariable("theForm", "formKey1");
I reference the variable for the form key in Task 1:
I run the process to Task 1 and retrieve the details using REST:
As we can see, form key is correctly populated.
Greg
