Closed mounicapav closed 7 years ago
how to add shape or symbol in meta data in a workflow definition?? like.... class ProjTaskWorkflow implements IWorkflowDefinitionProvider { public function getDefinition() {
return [ 'initialStatusId' => 'idle',
'status' => [ 'idle' => [ 'label' => 'Idle Stage', 'transition' => ['design'], 'metadata' => [ 'color' => 'yellow', 'shape' => ['diamond'], ], ], 'design' => [ 'transition' => ['idle','approve'], 'metadata' => [ 'color' => 'grey', ] ], 'approve' => [ 'transition' => ['idle','design','start'], 'metadata' => [ 'color' => 'blue' ] ], 'start' => [ 'transition' => ['idle','devcomplete'], 'metadata' => [ 'color' => 'green' ] ], 'devcomplete' => [ 'transition' => ['idle','start','review'], 'metadata' => [ 'color' => 'pink' ] ], 'review' => [ 'transition' => ['idle','start','testing'], 'metadata' => [ 'color' => 'orange' ] ], 'testing' => [ 'transition' => ['start','finished'], 'metadata' => [ 'color' => 'blue' ] ], 'finished' => [ 'metadata' => [ 'color' => 'violet' ] ] ] ]; }
}
i resolved it. thank you.
how to add shape or symbol in meta data in a workflow definition?? like.... class ProjTaskWorkflow implements IWorkflowDefinitionProvider { public function getDefinition() {
return [ 'initialStatusId' => 'idle',
}