Petals SE Flowable

Add support of placeholders to configure the process definition

Details

  • Type: Improvement Request Improvement Request
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: No version
  • Fix Version/s: 1.0.0
  • Security Level: Public
  • Description:
    Hide

    Add support of placeholders configured at component level to configure the process definition.

    If the placeholder 'signaturePeriod' is defined, it could be used as following in the process definition:

    <intermediateCatchEvent id="waitBeforeGetStatus" name="Wait">
          <timerEventDefinition>
            <timeDuration>${empty execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod ? "PT1H" : execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod}</timeDuration>
          </timerEventDefinition>
    </intermediateCatchEvent>

    or as:

    <serviceTask id="servicetask1" name="Service Task" implementation="##WebService"
             operationRef="process:archiveOperation">
             ...
             <dataInputAssociation>
                ...
                <assignment>
                   <from>${empty execution.variableInstances.petalsPlaceholders.getValue().placeholderValue1 ? "default-value" : execution.variableInstances.petalsPlaceholders.getValue().placeholderValue1}</from>
                   <to>${dataInputOfServiceTaskArchiveAttachment1.item2}</to>
                </assignment>
             </dataInputAssociation>
    </serviceTask>
    Show
    Add support of placeholders configured at component level to configure the process definition. If the placeholder 'signaturePeriod' is defined, it could be used as following in the process definition:
    <intermediateCatchEvent id="waitBeforeGetStatus" name="Wait">
          <timerEventDefinition>
            <timeDuration>${empty execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod ? "PT1H" : execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod}</timeDuration>
          </timerEventDefinition>
    </intermediateCatchEvent>
    or as:
    <serviceTask id="servicetask1" name="Service Task" implementation="##WebService"
             operationRef="process:archiveOperation">
             ...
             <dataInputAssociation>
                ...
                <assignment>
                   <from>${empty execution.variableInstances.petalsPlaceholders.getValue().placeholderValue1 ? "default-value" : execution.variableInstances.petalsPlaceholders.getValue().placeholderValue1}</from>
                   <to>${dataInputOfServiceTaskArchiveAttachment1.item2}</to>
                </assignment>
             </dataInputAssociation>
    </serviceTask>
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Wed, 16 Aug 2017 - 11:55:49 +0200

Support added in master branch

Show
Christophe DENEUX added a comment - Wed, 16 Aug 2017 - 11:55:49 +0200 Support added in master branch

People

Dates

  • Created:
    Mon, 14 Aug 2017 - 19:47:54 +0200
    Updated:
    Wed, 16 Aug 2017 - 11:55:50 +0200
    Resolved:
    Wed, 16 Aug 2017 - 11:55:49 +0200