improve autowiring and add workflow to tasks

This commit is contained in:
2018-04-25 12:03:16 +02:00
parent 196fc2c38f
commit adc830142b
10 changed files with 4669 additions and 117 deletions

View File

@@ -107,26 +107,30 @@ abstract class AbstractTask implements HasScopeInterface, HasCenterInterface
/**
* Set currentStates
*
* The current states are sorted in a single array, non associative.
*
* @param json $currentStates
* @param $currentStates
*
* @return AbstractTask
*/
public function setCurrentStates($currentStates)
{
$this->currentStates = $currentStates;
$this->currentStates = \array_keys($currentStates);
return $this;
}
/**
* Get currentStates
*
* The states are returned as required by marking store format.
*
* @return json
* @return array
*/
public function getCurrentStates()
{
return $this->currentStates;
return \array_fill_keys($this->currentStates, 1);
}
/**