AnsweredAssumed Answered

Display of form on user taks failed

Question asked by udoderk on Sep 11, 2012
Latest reply on Dec 21, 2012 by jbarrez
hi all,

currently I have no idea why the form of the user task will be not displayed fo CASE 2. But the form will be displayed for CASE 1. I use the Activiti Explorer 5.10 to deploy the process.

Can anyone identify the reason?
The CASE 1 uses the following XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions targetNamespace="adhoc"
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:ns3="http://activiti.org/bpmn"
  xmlns:ns5="http://www.omg.org/spec/DD/20100524/DC"
  xmlns:ns4="http://www.omg.org/spec/DD/20100524/DI"
  xmlns:ns6="http://www.omg.org/spec/BPMN/20100524/DI">
   <process processType="Private" isExecutable="true" name="Test Expense process" id="test-adhoc_Expense_process">
      <documentation id="test-adhoc_Expense_process_documentation"> Test Example process created using Activiti KickStart</documentation>
      <startEvent ns3:initiator="initiator" id="testtheStart" />
      <sequenceFlow targetRef="testtask_1" sourceRef="testtheStart" id="testflow_1" />
      <userTask name="Test Request expense refund" id="testtask_1">
         <documentation id="testtask_1_documentation">TEstRequest the refund of an expense
            related to company business.</documentation>
         <extensionElements>
            <ns3:formProperty required="true" type="long" name="TestAmount"
               id="TestAmount" />
            <ns3:formProperty required="false" type="string"
               name="TestMotivation" id="TestMotivation" />
         </extensionElements>
         <humanPerformer
            id="humanPerformer1">
            <resourceAssignmentExpression
               id="humanPerformer1_assignmentExpression">
               <formalExpression
                  id="humanPerformer1_formalExpressions">${initiator}</formalExpression>
            </resourceAssignmentExpression>
         </humanPerformer>
      </userTask>
      <sequenceFlow targetRef="testtask_2" sourceRef="testtask_1" id="testflow_2" />
      <userTask name="Test Handle expense request" id="testtask_2">
         <documentation id="task_2_documentation">${initiator} has filed an expense
            refund request.</documentation>
         <extensionElements>
            <ns3:formProperty required="true" type="string"
               name="Do you agree?" id="Test Do you agree?" />
         </extensionElements>
         <potentialOwner
            id="testpotentialOwner1">
            <resourceAssignmentExpression
               id="testpotentialOwner1_assignmentExpression">
               <formalExpression
                  id="potentialOwner1_formalExpressions">management</formalExpression>
            </resourceAssignmentExpression>
         </potentialOwner>
      </userTask>
      <endEvent id="theEnd" />
      <sequenceFlow targetRef="theEnd" sourceRef="testtask_2" id="flow_3" />
   </process>
   </definitions>

The CASE 2 uses the following XML:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions targetNamespace="adhoc"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
   xmlns:ns3="http://activiti.org/bpmn"
   xmlns:ns5="http://www.omg.org/spec/DD/20100524/DC"
   xmlns:ns4="http://www.omg.org/spec/DD/20100524/DI"
xmlns:ns6="http://www.omg.org/spec/BPMN/20100524/DI">
   <process processType="Private" isExecutable="true"  id="activitiAdhoc11111" name="Adhoc Activiti Process Test">
   <documentation id="test1-adhoc_Expense_process_documentation"> Test Example process </documentation>
      <startEvent ns3:initiator="initiator" id="startevent111" />
      <sequenceFlow targetRef="usertask111" sourceRef="startevent111" id="flow111"/>
      <userTask id="usertask111" name="User Task1">
      <documentation id="testtask_1_documentation">TEstRequ
est.</documentation>
         <extensionElements>
            <ns3:formProperty required="true" type="long" name="TestAmount1"
               id="TestAmount1" />
            <ns3:formProperty required="false" type="string"
               name="TestMotivation1" id="TestMotivation1" />
         </extensionElements>
         <humanPerformer id="humanPerformer111">
            <resourceAssignmentExpression
          id="humanPerformer111_assignmentExpression">
               <formalExpression
id="humanPerformer111_formalExpressions">${initiator} </formalExpression>
            </resourceAssignmentExpression>
         </humanPerformer>
      </userTask>
      <sequenceFlow id="flow222" targetRef="usertask222"  sourceRef="usertask111"/>
      <userTask  name="User Task 2" id="usertask222">
      <documentation id="task_22_documentation">${initiator} has
request.</documentation>
         <extensionElements>
            <ns3:formProperty required="true"  type="string"
name="name222" id="id222" />
         </extensionElements>
         <potentialOwner id="testpotentialOwner1">
            <resourceAssignmentExpression
               id="testpotentialOwner1_assignmentExpression">
               <formalExpression
id="potentialOwner1_formalExpressions">management</formalExpression>
            </resourceAssignmentExpression>
         </potentialOwner>
      </userTask>
      <endEvent id="endevent1" />
      <sequenceFlow targetRef="endevent1" sourceRef="usertask222" id="flow3" />
   </process>
</definitions>

Outcomes