7 $f = $DIC->ui()->factory()->listing()->workflow();
8 $renderer = $DIC->ui()->renderer();
13 $f->step(
'step 1',
'available, successfully completed')
14 ->withAvailability($step::AVAILABLE)->withStatus($step::SUCCESSFULLY),
15 $f->step(
'step 2',
'available, unsuccessfully completed')
16 ->withAvailability($step::AVAILABLE)->withStatus($step::UNSUCCESSFULLY),
17 $f->step(
'step 3',
'available, not started')
18 ->withAvailability($step::AVAILABLE)->withStatus($step::NOT_STARTED),
19 $f->step(
'step 4',
'available, in progress')
20 ->withAvailability($step::AVAILABLE)->withStatus($step::IN_PROGRESS),
21 $f->step(
'active step',
'available, in progress, active (by workflow)')
22 ->withAvailability($step::AVAILABLE)->withStatus($step::IN_PROGRESS),
23 $f->step(
'step 6',
'not available, not started')
24 ->withAvailability($step::NOT_AVAILABLE)->withStatus($step::NOT_STARTED),
25 $f->step(
'step 7',
'not available, in progress')
26 ->withAvailability($step::NOT_AVAILABLE)->withStatus($step::IN_PROGRESS),
27 $f->step(
'step 8',
'not available, successfully completed')
28 ->withAvailability($step::NOT_AVAILABLE)->withStatus($step::SUCCESSFULLY),
29 $f->step(
'step 9',
'not available, unsuccessfully completed')
30 ->withAvailability($step::NOT_AVAILABLE)->withStatus($step::UNSUCCESSFULLY),
31 $f->step(
'step 10',
'not available anymore, not started')
32 ->withAvailability($step::NOT_ANYMORE)->withStatus($step::NOT_STARTED),
33 $f->step(
'step 11',
'not available anymore, in progress')
34 ->withAvailability($step::NOT_ANYMORE)->withStatus($step::IN_PROGRESS),
35 $f->step(
'step 12',
'not available anymore, successfully completed')
36 ->withAvailability($step::NOT_ANYMORE)->withStatus($step::SUCCESSFULLY),
37 $f->step(
'step 13',
'not available anymore, unsuccessfully completed')
38 ->withAvailability($step::NOT_ANYMORE)->withStatus($step::UNSUCCESSFULLY),
42 $wf =
$f->linear(
'Linear Workflow',
$steps)
46 return $renderer->render($wf);
foreach( $_REQUEST as $var) foreach(array('_POST'=> 'HTTP_POST_VARS', '_GET'=> 'HTTP_GET_VARS', '_COOKIE'=> 'HTTP_COOKIE_VARS', '_SERVER'=> 'HTTP_SERVER_VARS', '_ENV'=> 'HTTP_ENV_VARS', '_FILES'=> 'HTTP_POST_FILES') as $array=> $other) $step