Petals SE Flowable

Placeholders not reloaded once a process instance is started

Details

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

    Placeholders can be used in process definition through the process variable 'petalsPlaceholders', for example in a JUEL expression:

    ${empty execution.variableInstances.petalsPlaceholders.getValue().placeholderValue1 ? "default-value-1" : execution.variableInstances.petalsPlaceholders.getValue().placeholderValue1}

    One a process instance is started, the placeholder values are not updated when reloading them. But a process instance started after the placeholder reloading uses the palceholder values updated.

    Show
    Placeholders can be used in process definition through the process variable 'petalsPlaceholders', for example in a JUEL expression:
    ${empty execution.variableInstances.petalsPlaceholders.getValue().placeholderValue1 ? "default-value-1" : execution.variableInstances.petalsPlaceholders.getValue().placeholderValue1}
    One a process instance is started, the placeholder values are not updated when reloading them. But a process instance started after the placeholder reloading uses the palceholder values updated.
  • Environment:
    -

Issue Links

Activity

Hide
Christophe DENEUX added a comment - Tue, 27 Sep 2022 - 17:51:13 +0200

To be able to use up-to-date value for placeholders, we must introduce a new custom JUEL function. This JUEL function will return the current value of a placeholder:

${petals:getPlaceholder('placeholder-name')}

or

${petals:getPlaceholderWithDefault('placeholder-name', 'default-value')}
Show
Christophe DENEUX added a comment - Tue, 27 Sep 2022 - 17:51:13 +0200 To be able to use up-to-date value for placeholders, we must introduce a new custom JUEL function. This JUEL function will return the current value of a placeholder:
${petals:getPlaceholder('placeholder-name')}
or
${petals:getPlaceholderWithDefault('placeholder-name', 'default-value')}
Christophe DENEUX made changes - Tue, 27 Sep 2022 - 17:51:13 +0200
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Christophe DENEUX made changes - Tue, 27 Sep 2022 - 17:51:15 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Wed, 28 Sep 2022 - 10:04:16 +0200

Placeholder access reworked in branch 1.3.x

Show
Christophe DENEUX added a comment - Wed, 28 Sep 2022 - 10:04:16 +0200 Placeholder access reworked in branch 1.3.x
Christophe DENEUX made changes - Wed, 28 Sep 2022 - 10:04:16 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 1.3.2 [ 11051 ]
Resolution Fixed [ 1 ]
Hide
Christophe DENEUX added a comment - Wed, 28 Sep 2022 - 10:04:29 +0200 - edited

Reopened to merge in master

Show
Christophe DENEUX added a comment - Wed, 28 Sep 2022 - 10:04:29 +0200 - edited Reopened to merge in master
Christophe DENEUX made changes - Wed, 28 Sep 2022 - 10:04:29 +0200
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Wed, 28 Sep 2022 - 10:12:05 +0200
Link This issue blocks PETALSSEFLOWABLE-82 [ PETALSSEFLOWABLE-82 ]
Christophe DENEUX made changes - Wed, 28 Sep 2022 - 10:45:40 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Wed, 28 Sep 2022 - 10:46:26 +0200

Merged in master branch with git#e6b45fdc5752da0a24262ac890c737a9d2eae9fc

Show
Christophe DENEUX added a comment - Wed, 28 Sep 2022 - 10:46:26 +0200 Merged in master branch with git#e6b45fdc5752da0a24262ac890c737a9d2eae9fc
Christophe DENEUX made changes - Wed, 28 Sep 2022 - 10:46:26 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
1m 55s
1
Christophe DENEUX
Tue, 27 Sep 2022 - 17:51:13 +0200
Open Open In Progress In Progress
2s
1
Christophe DENEUX
Tue, 27 Sep 2022 - 17:51:15 +0200
In Progress In Progress Resolved Resolved
16h 13m
1
Christophe DENEUX
Wed, 28 Sep 2022 - 10:04:16 +0200
Resolved Resolved Open Open
13s
1
Christophe DENEUX
Wed, 28 Sep 2022 - 10:04:29 +0200
Open Open In Progress In Progress
41m 11s
1
Christophe DENEUX
Wed, 28 Sep 2022 - 10:45:40 +0200
In Progress In Progress Resolved Resolved
46s
1
Christophe DENEUX
Wed, 28 Sep 2022 - 10:46:26 +0200



People

Dates

  • Created:
    Tue, 27 Sep 2022 - 17:49:18 +0200
    Updated:
    Wed, 28 Sep 2022 - 10:46:26 +0200
    Resolved:
    Wed, 28 Sep 2022 - 10:46:26 +0200