mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-28 21:16:13 +00:00
Add futurePersonSignatures property to WorkflowTransitionContextDTO
A new property named futurePersonSignatures has been added to the WorkflowTransitionContextDTO class. This will hold a list of Person objects expected to sign the next step, improving the scope of information available within the workflow context.
This commit is contained in:
parent
7f3de62b2c
commit
b5af9f7b63
@ -437,6 +437,10 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
$newStep->addDestEmail($email);
|
$newStep->addDestEmail($email);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach ($transitionContextDTO->futurePersonSignatures as $personSignature) {
|
||||||
|
new EntityWorkflowStepSignature($newStep, $personSignature);
|
||||||
|
}
|
||||||
|
|
||||||
// copy the freeze
|
// copy the freeze
|
||||||
if ($this->isFreeze()) {
|
if ($this->isFreeze()) {
|
||||||
$newStep->setFreezeAfter(true);
|
$newStep->setFreezeAfter(true);
|
||||||
|
@ -51,6 +51,11 @@ class WorkflowTransitionContextDTO
|
|||||||
*/
|
*/
|
||||||
public array $futureDestEmails = [];
|
public array $futureDestEmails = [];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* a list of future @see{Person} with will sign the next step.
|
||||||
|
*/
|
||||||
|
public array $futurePersonSignatures = [];
|
||||||
|
|
||||||
public ?Transition $transition = null;
|
public ?Transition $transition = null;
|
||||||
|
|
||||||
public string $comment = '';
|
public string $comment = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user