Skip to content

Add inheritVariables property to CMMN CaseTask and ProcessTask - #4265

Open
BertMatthys wants to merge 1 commit into
flowable:mainfrom
BertMatthys:cmmn-process-case-task-inherit-variables
Open

Add inheritVariables property to CMMN CaseTask and ProcessTask#4265
BertMatthys wants to merge 1 commit into
flowable:mainfrom
BertMatthys:cmmn-process-case-task-inherit-variables

Conversation

@BertMatthys

Copy link
Copy Markdown
Contributor

No description provided.

@filiphr filiphr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BertMatthys should we also do this for the BPMN CaseTaskActivityBehavior? See also my inline comment

if (inheritVariables) {
// Inherit all variables from the parent. Explicit in parameters are
// applied afterwards, so they take precedence over the inherited variables.
inParametersMap.putAll(planItemInstanceEntity.getVariables());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do this in a similar way we do it for BPMN where we distinguish between transient and non transient variables. With this we now also include transient variables in the ones that would be persisted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants