Discussion:
[jboss-user] [jBPM] - Re: WorkItem definition paramater and process variable mapping in Designer
Sergey Kornilov
2013-01-30 14:27:43 UTC
Permalink
Sergey Kornilov [https://community.jboss.org/people/kornilovs] created the discussion

"Re: WorkItem definition paramater and process variable mapping in Designer"

To view the discussion, visit: https://community.jboss.org/message/795149#795149

--------------------------------------------------------------
Try write  #{msg} in colomn "To Value", if you want set  String "msg" to you Service Task.
If you want Get parameters from service task add "results"
  [
    "name" : "GetConstant",
    "parameters" : [
    "ReqType" : new StringDataType(),
    "Name"    : new StringDataType()
    ],
    "results" : [
        "Result" : new UndefinedDataType()
    ],
    "category" : "Const",
    "displayName" : "GetConstantByName",
    "icon" : "..."
  ],
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/795149#795149]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Tihomir Surdilovic
2013-02-03 15:43:29 UTC
Permalink
Tihomir Surdilovic [https://community.jboss.org/people/tsurdilovic] created the discussion

"Re: WorkItem definition paramater and process variable mapping in Designer"

To view the discussion, visit: https://community.jboss.org/message/795809#795809

--------------------------------------------------------------
In your exampel "Message" is a data input of your task and in your data input assignments you want to map an existing process variable or a data object to it, not the other way around; your data input assignment should be "msg is mapped to Message" and not the other way around.

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/795809#795809]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Shawn Imholte
2013-02-03 18:47:03 UTC
Permalink
Shawn Imholte [https://community.jboss.org/people/simholte] created the discussion

"Re: WorkItem definition paramater and process variable mapping in Designer"

To view the discussion, visit: https://community.jboss.org/message/795817#795817

--------------------------------------------------------------
Well that just makes too much sense.  I was reading it like a parameter assignment of a method since the WI parameter Data Inputs are prepopulated on the left hand side of the equation.  But I need to think of it as a mapping interface and my WI parameters as variables that only have scope within that particular node.

Thanks for clearing this up and taking the time to answer my question.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/795817#795817]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...