1 Reply Latest reply on Feb 19, 2013 12:27 AM by tomsebastian

    Custom workitem property in designer not working

    tomsebastian

      Hi,

           I have created a custom property for email node as below:(I created a custom workitem definition for email)

      designer1.PNG

       

      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?

        • 1. Re: Custom workitem property in designer not working
          tomsebastian

          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

                    ]

                    .....

           

          ]

           

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

           

          Thanks in advance..