cancel
Showing results for 
Search instead for 
Did you mean: 

Display of form on user taks failed

udoderk
Champ in-the-making
Champ in-the-making
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>
5 REPLIES 5

udoderk
Champ in-the-making
Champ in-the-making
It seems, that the "first" human performer block was bad formatted with Eclipse:-/
If i replace it with human performer block from "good" case, the form will be displaxed.
         <humanPerformer id="humanP1">
            <resourceAssignmentExpression
               id="humanP_assignmentExpression">
               <formalExpression
                  id="humanPer_formalExpressions">${initiator}</formalExpression>
            </resourceAssignmentExpression>
         </humanPerformer>

If i format then it with Eclipse, this problem occurs again.

udoderk
Champ in-the-making
Champ in-the-making
I have reported this case as BUG: if the JUEL value expression ${initiator} is entered in the next line of the XML file, so no GUI mask will be shown.
<humanPerformer id="humanPerformer111"><resourceAssignmentExpression id="humanPerformer111_assignmentExpression"><formalExpression id="humanPerformer111_formalExpressions">
${initiator}</formalExpression>
If  if the JUEL value expression ${initiator} used in same line,

<humanPerformer id="humanPerformer111"><resourceAssignmentExpression id="humanPerformer111_assignmentExpression"><formalExpression id="humanPerformer111_formalExpressions">${initiator}</formalExpression>
thus GUI mask will be shown.
[img]http://jira.codehaus.org/secure/attachment/61241/activiti-BUG-UEL-all.png[/img]

jbarrez
Star Contributor
Star Contributor
That does smell like a bug. Thank you for filing it!

udoderk
Champ in-the-making
Champ in-the-making
That does smell like a bug. Thank you for filing it!
Do you intend to correct this bug in the 5.10 or 5.12?

jbarrez
Star Contributor
Star Contributor
It might be automatically fixed when Tijs commits his parser refactorings next week.

I'll check it then.