19 declare(strict_types=1);
37 $f = $DIC->ui()->factory()->listing()->workflow();
41 $step =
$f->step(
'',
'');
43 $f->step(
'step 1',
'available, successfully completed')
44 ->withAvailability($step::AVAILABLE)->withStatus($step::SUCCESSFULLY),
45 $f->step(
'step 2',
'available, successfully completed')
46 ->withAvailability($step::AVAILABLE)->withStatus($step::SUCCESSFULLY),
47 $f->step(
'step 3',
'available, in progress, active ')
48 ->withAvailability($step::AVAILABLE)->withStatus($step::IN_PROGRESS),
49 $f->step(
'step 4',
'not available, not started')
50 ->withAvailability($step::NOT_AVAILABLE)->withStatus($step::NOT_STARTED),
51 $f->step(
'step 5',
'not available, not started')
52 ->withAvailability($step::NOT_AVAILABLE)->withStatus($step::NOT_STARTED)
56 $wf =
$f->linear(
'Linear Workflow', $steps)
base()
description: > Example for rendering a linear workflow.