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}
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
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 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
26s
1
Christophe DENEUX
Mon, 14 Aug 2017 - 19:48:20 +0200
Open Open In Progress In Progress
2s
1
Christophe DENEUX
Mon, 14 Aug 2017 - 19:48:22 +0200
In Progress In Progress Resolved Resolved
1d 16h 7m
1
Christophe DENEUX
Wed, 16 Aug 2017 - 11:55:50 +0200



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