Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-5191

[GSS] Error being thrown when setting expressions for attributes in custom tasks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 6.4.10
    • Eclipse Tooling
    • Red Hat JBoss Developer Studio 11.0
      Red Hat JBoss Developer Studio 11.3

    • User Experience
    • Workaround Exists
    • Hide

      1. when you edit one of the attributes (consider "from" attribute), if you try copy the expression "#

      {MailingVar.from}"
      2. than you try switching to Data Item instead of Expression selected
      3. again switch back and select Expression and paste the copied expression "#{MailingVar.from}

      " in Script
      4. further you will observe that all four mapping error which was visible under problem tab disappears when you save the process.

      However if you try again updating your project (Maven -> Update project), again same error comes back and requires to be re-mapped[3] again to remove the errors.

      Show
      1. when you edit one of the attributes (consider "from" attribute), if you try copy the expression "# {MailingVar.from}" 2. than you try switching to Data Item instead of Expression selected 3. again switch back and select Expression and paste the copied expression "#{MailingVar.from} " in Script 4. further you will observe that all four mapping error which was visible under problem tab disappears when you save the process. However if you try again updating your project (Maven -> Update project), again same error comes back and requires to be re-mapped [3] again to remove the errors.
    • Hide

      > consider you have maven project having bpmn process with custom task (Email task)
      > than set below expressions in Attributes for Email task where WorkItemDefinition contains [1] :
      For Attributes
      From :: "#

      {MailingVar.from}

      "
      To :: "#

      {MailingVar.to}

      "
      Subject :: "#

      {MailingVar.subject}

      "
      Body :: "#

      {MailingVar.text}

      "

      [1] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [
      "name" : "Email",
      "parameters" : [
      "From" : new StringDataType(),
      "To" : new StringDataType(),
      "Subject" : new StringDataType(),
      "Body" : new StringDataType()
      ],
      "displayName" : "Email",
      "icon" : "defaultemailicon.gif"
      ],
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~
      > than you will see errors under Problems tab as below :
      Data Input From has no Data Type
      Data Input To has no Data Type
      Data Input Subject has no Data Type
      Data Input Body has no Data Type

      Show
      > consider you have maven project having bpmn process with custom task (Email task) > than set below expressions in Attributes for Email task where WorkItemDefinition contains [1] : For Attributes From :: "# {MailingVar.from} " To :: "# {MailingVar.to} " Subject :: "# {MailingVar.subject} " Body :: "# {MailingVar.text} " [1] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ "name" : "Email", "parameters" : [ "From" : new StringDataType(), "To" : new StringDataType(), "Subject" : new StringDataType(), "Body" : new StringDataType() ], "displayName" : "Email", "icon" : "defaultemailicon.gif" ], ~~~~~~~~~~~~~~~~~~~~~~~~~~~ > than you will see errors under Problems tab as below : Data Input From has no Data Type Data Input To has no Data Type Data Input Subject has no Data Type Data Input Body has no Data Type

      When you set expressions instead of using "Data Item and assigning Source" for Custom task (such as Email task created) in process , throws error "Data Input From has no Data Type", similarly for other attributes:

      "Data Input To has no Data Type"
      "Data Input Subject has no Data Type"
      "Data Input Body has no Data Type"

      If we have WorkItemDefinition having content as below:

      [
      "name" : "Email",
      "parameters" : [
      "From" : new StringDataType(),
      "To" : new StringDataType(),
      "Subject" : new StringDataType(),
      "Body" : new StringDataType()
      ],
      "displayName" : "Email",
      "icon" : "defaultemailicon.gif"
      ],

              kverlaen@redhat.com Kris Verlaenen
              rhn-support-rangupta Ranjay Gupta (Inactive)
              Tomas David Tomas David
              Tomas David Tomas David
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: