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

Christophe DENEUX made changes - Mon, 14 Aug 2017 - 19:48:13 +0200
Field Original Value New Value
Priority Blocker [ 1 ]
Description 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:
{code:xml}
    <intermediateCatchEvent id="waitBeforeGetStatus" name="Wait">
      <timerEventDefinition>
        <timeDuration>${empty execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod ? "PT1H" : execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod}</timeDuration>
      </timerEventDefinition>
    </intermediateCatchEvent>
{code}
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:
{code:xml}
<intermediateCatchEvent id="waitBeforeGetStatus" name="Wait">
      <timerEventDefinition>
        <timeDuration>${empty execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod ? "PT1H" : execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod}</timeDuration>
      </timerEventDefinition>
</intermediateCatchEvent>
{code}
Christophe DENEUX made changes - Mon, 14 Aug 2017 - 19:48:20 +0200
Status New [ 10000 ] Open [ 10002 ]
Priority Blocker [ 1 ] Major [ 3 ]
Christophe DENEUX made changes - Mon, 14 Aug 2017 - 19:48:22 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Wed, 16 Aug 2017 - 11:53:27 +0200
Description 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:
{code:xml}
<intermediateCatchEvent id="waitBeforeGetStatus" name="Wait">
      <timerEventDefinition>
        <timeDuration>${empty execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod ? "PT1H" : execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod}</timeDuration>
      </timerEventDefinition>
</intermediateCatchEvent>
{code}
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:
{code:xml}
<intermediateCatchEvent id="waitBeforeGetStatus" name="Wait">
      <timerEventDefinition>
        <timeDuration>${empty execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod ? "PT1H" : execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod}</timeDuration>
      </timerEventDefinition>
</intermediateCatchEvent>
{code}

or as:
{code}
<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>
{code}
Christophe DENEUX made changes - Wed, 16 Aug 2017 - 11:55:29 +0200
Description 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:
{code:xml}
<intermediateCatchEvent id="waitBeforeGetStatus" name="Wait">
      <timerEventDefinition>
        <timeDuration>${empty execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod ? "PT1H" : execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod}</timeDuration>
      </timerEventDefinition>
</intermediateCatchEvent>
{code}

or as:
{code}
<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>
{code}
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:
{code:xml}
<intermediateCatchEvent id="waitBeforeGetStatus" name="Wait">
      <timerEventDefinition>
        <timeDuration>${empty execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod ? "PT1H" : execution.variableInstances.petalsPlaceholders.getValue().signaturePeriod}</timeDuration>
      </timerEventDefinition>
</intermediateCatchEvent>
{code}

or as:
{code:xml}
<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>
{code}
Christophe DENEUX made changes - Wed, 16 Aug 2017 - 11:55:50 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 1.0.0 [ 10741 ]
Resolution Fixed [ 1 ]

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