Discussion:
[jboss-user] [jBPM] - Custom workitem property in designer not working
tom sebastian
2013-02-18 11:46:12 UTC
Permalink
tom sebastian [https://community.jboss.org/people/tomsebastian] created the discussion

"Custom workitem property in designer not working"

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

--------------------------------------------------------------
Hi,
     I have created a custom property for email node as below:(I created a custom workitem definition for email)
Loading Image... Loading Image...

for this I added a property in:  jbpm-designer-2.4.0.war\stencilsets\bpmn2.0jbpm\stencildata\bpmn2.0jbpm.orig
as:
{
                                                  "id":"ConfigureEmail",
                                                  "type":"Custom",
                                                  "title":"ConfigureEmail",
                                                  "value":"",
                                                  "description":"Configure Email",
                                                  "description_ja":"アクション開始時",
                                                  "readonly":false,
                                                  "optional":true
  }

in custom workitems session. Then the above property came to visible.

But after setting any value to this field it is not populated as a workitem parameter.

What shall ido to get it as a workitem parameter (say workitem.getParameter("ConfigureEmail")) in my custom handler.
Any idea..
Was my understanding wrong?
please help?
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
tom sebastian
2013-02-19 05:27:31 UTC
Permalink
tom sebastian [https://community.jboss.org/people/tomsebastian] created the discussion

"Re: Custom workitem property in designer not working"

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

--------------------------------------------------------------
Hi,
    Or I want to know how to have a custom editor for a custom data input that was given as a parameter in workitem definition .
for example in guvnor ui>workitem definitions I add a workitem as below:

import org.drools.process.core.datatype.impl.type.StringDataType;
[ 
          [    "name" : "Email",
                    "parameters" : [ 
                              "*ConfigureEmail*" : new StringDataType()
                    ],
                    "displayName" : "Email",
                    "icon" : " http://192.168.1.130:8086/drools-guvnor/rest/packages/defaultPackage/assets/defaultemailicon/binary http://192.168.1.130:8086/drools-guvnor/rest/packages/defaultPackage/assets/defaultemailicon/binary" 
          ]
          .....

]

I want to make a custom editor for *ConfigureEmail* data input. is it possible?

Thanks in advance..
--------------------------------------------------------------

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

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