Skip to content

Commit

Permalink
Merge pull request #193 from ProcessMaker/feature/multiinstance
Browse files Browse the repository at this point in the history
LoopCharacteristics - getLoopInstanceProperty
  • Loading branch information
boliviacoca authored Mar 12, 2021
2 parents eb9dfc9 + dea3875 commit 03d8955
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProcessMaker/Nayra/Bpmn/LoopCharacteristicsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private function setLoopInstanceProperty(TokenInterface $token, $key, $value)
*
* @return mixed
*/
private function getLoopInstanceProperty(TokenInterface $token, $key, $defaultValue = null)
public function getLoopInstanceProperty(TokenInterface $token, $key, $defaultValue = null)
{
$loopCharacteristics = $token->getProperty(LoopCharacteristicsInterface::BPMN_LOOP_INSTANCE_PROPERTY, []);
$outerInstance = $loopCharacteristics['sourceToken'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,15 @@ public function isExecutable();
* @return void
*/
public function mergeOutputData(CollectionInterface $consumedTokens, ExecutionInstanceInterface $instance);

/**
* Get Loop Instance property during execution
*
* @param TokenInterface $token
* @param string $key
* @param mixed $defaultValue
*
* @return mixed
*/
public function getLoopInstanceProperty(TokenInterface $token, $key, $defaultValue = null);
}

0 comments on commit 03d8955

Please sign in to comment.