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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 6.4.10
    • Fix Version/s: None
    • Component/s: Eclipse Tooling
    • Labels:
    • Environment:

      Red Hat JBoss Developer Studio 11.0
      Red Hat JBoss Developer Studio 11.3

    • Target Release:
    • Steps to Reproduce:
      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
    • Workaround:
      Workaround Exists
    • Workaround Description:
      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.
    • Affects:
      User Experience

      Description

      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"
      ],

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                KrisVerlaenen Kris Verlaenen
                Reporter:
                rhn-support-rangupta Ranjay Gupta
                Tester:
                Tomas David
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: