3 Replies Latest reply on Feb 3, 2013 1:46 PM by Shawn Imholte

    WorkItem definition paramater and process variable mapping in Designer

    Shawn Imholte Newbie

      Hello,

       

      I'm trying to create a custom work item definition and map process variables to the paramaters.  But if the name of the process variable doesn't match the name of the WI paramater the BPMN2 file created has an incomplete dataInputAssociation.

       

      WI definition:

       

      import org.drools.process.core.datatype.impl.type.StringDataType;

      [

         [

          "name" : "Log",

          "parameters" : [

            "Message" : new StringDataType()

          ],

          "displayName" : "Log",

          "icon" : "http://localhost:8080/drools-guvnor/rest/packages/ebtsx/assets/defaultlogicon/binary"

        ]

      ]

       

      Variable definition:

      msg:String

      Untitled2.jpg

      Assign the Paramater of the WI to the variable.

      Message->msg

      Untitled3.jpg

       

      Click on "BPMN2"

      <bpmn2:dataInputAssociation id="_JYTDp2muEeKEtcYn_A4DTg">

              <bpmn2:sourceRef>Message</bpmn2:sourceRef>

      </bpmn2:dataInputAssociation>

      Untitled.jpg

       

      You can see that the dataInputAssociation is incomplete.  I attached the bpmn2 file.

       

      I'm sure I'm doing something wrong so if someone could point me down the correct path I would appreciate it.

       

      Guvnor version 5.4

      Designer version 2.4

      JBOSS AS7