cancel
Showing results for 
Search instead for 
Did you mean: 

Form Key or Form properties

steelant
Champ in-the-making
Champ in-the-making
Dear All,

I am new to activiti. I created a simple user task, I tried to use form key and form properties. I deployed the workflow to Alfresco, when I start the workflow, how can I see the assignee and/or assign to text field to let me input the assignments? Please help to provide some hints.

Best regards
anthony chan

<code>
<process id="HelloWorld" name="HelloWorld" isExecutable="true">
    <startEvent id="sid-D628E567-DD2E-4D41-B4B0-2BE3917AC6CB" name="HelloWorld" activiti:formKey="wf:adhoc">
      <extensionElements>
        <activiti:formProperty id="assign_to" name="assign_to" type="string" variable="assign_to" required="true"></activiti:formProperty>
      </extensionElements>
    </startEvent>
    <endEvent id="sid-2EC3545D-3BCE-4269-AAB2-D5144D92164F"></endEvent>
    <userTask id="HelloWorld1" name="HelloWorld1" activiti:assignee="${assign_to}" activiti:candidateUsers="${assign_to}" activiti:formKey="wf:adhoc">
      <extensionElements>
        <activiti:formProperty id="assign_to1" name="assign_to1" type="string" variable="assign_to1" required="true"></activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="sid-D3D8C07E-005F-4C7B-B2C1-597F6ED029B2" sourceRef="sid-D628E567-DD2E-4D41-B4B0-2BE3917AC6CB" targetRef="HelloWorld1"></sequenceFlow>
    <serviceTask id="sendemail" name="sendemail" activiti:class="com.compareglobalgroup.javaservice.SendEmail"></serviceTask>
    <sequenceFlow id="sid-01FA52CF-F7D3-426B-AF43-62B5D2D3F001" sourceRef="HelloWorld1" targetRef="sendemail"></sequenceFlow>
    <sequenceFlow id="sid-52D1E438-8961-4D92-8377-1CF7B00164ED" sourceRef="sendemail" targetRef="sid-2EC3545D-3BCE-4269-AAB2-D5144D92164F"></sequenceFlow>
  </process>
<code>
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Alfresco has a whole different way of handling forms. Check for example http://ecmarchitect.com/alfresco-developer-series-tutorials/workflow/tutorial/tutorial.html for more information.