/**
* Workflow template: define tiempos estandard y sequencia de actividades.
*
* Valida y calcula agregando est,lst,eet,let, slack, next, prev activity, prevAll, nextAll.
* Main usage: get user input for wf template: validate, acompleta, para guardar.
*
* est earliest start time, int número de periodos: dias/horas
* lst latest start time
* eet earliest end time
* let latest end time
* slack holgura
*
*
* plan=>[
* eet=>ya es fecha
*
*
* ]
*
* rule invalid id "s\ttart"
*
* activityList =
* [
* 'a'=>['duration'=>1, 'label'=>'Act: a', 'myData'=>1],
* 'b'=>['duration'=>3],
* 'c'=>['duration'=>4,'prev'=>['a','b'=>'b']],
* 'd'=>['duration'=>5,'prev'=>['c']],
* 'f'=>['duration'=>4,'prev'=>['b']],
* 'e'=>['duration'=>5,'prev'=>['d']],
* ];
*
*
*
*
*
* @version 0.0.1
*//**
* WF_template constructor.
* @param array $activityList
* @throws Exception
*/Disclaimer: Auto generated file. Please help us setting parameters to useful values and extending the examples.
/**
* WF_template constructor.
* @param array $activityList
* @throws Exception
*/
/*
$wF_template = new WF_template(array $activityList);
*/
$wF_template = new WF_template(['a' => '1', 'b' => '2', 'c' => 3]);
Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, string given in /lamp/www/iaLib/inc_ia/Work/src/Workflow/WF_template.php:116 Stack trace: #0 /lamp/www/iaLib/inc_ia/Work/src/Workflow/WF_template.php(116): array_merge(Array, '1', Array) #1 /lamp/www/iaLib/inc_ia/Work/src/Workflow/WF_template.php(75): ia\Work\Workflow\WF_template->validate() #2 /lamp/www/iaLib/inc_ia/Work/src/Workflow/WF_template.php(66): ia\Work\Workflow\WF_template->setup() #3 /lamp/www/iaLib/ia_examples/code/ia/Work/Workflow/WF_template_example_code.php(27): ia\Work\Workflow\WF_template->__construct(Array) #4 /lamp/www/iaLib/ia_examples/template/ia_example_class.php(118): include('/lamp/www/iaLib...') #5 /lamp/www/iaLib/ia_examples/ia/Work/Workflow/WF_template_example.php(9): include('/lamp/www/iaLib...') #6 {main} thrown in /lamp/www/iaLib/inc_ia/Work/src/Workflow/WF_template.php on line 116 |