if you're still thinking to use the workflow component provided by the EzComponents library, maybe this wiki article can be intresting for you ....
bye
Posted 08 June 2011 - 01:29 PM
Posted 02 July 2011 - 10:23 AM
Posted 15 July 2011 - 08:59 AM
Raoul, on 02 July 2011 - 10:23 AM, said:
Posted 06 October 2011 - 10:46 AM
Posted 06 October 2011 - 12:51 PM
Posted 07 October 2011 - 11:14 AM
Posted 07 October 2011 - 01:34 PM
Posted 09 December 2011 - 05:42 PM
Posted 09 December 2011 - 05:48 PM
kjharni, on 09 December 2011 - 05:42 PM, said:
Posted 09 December 2011 - 06:39 PM
Posted 12 January 2012 - 08:07 AM
include(correction.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
include(correction.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory (E:\xampp\framework\YiiBase.php:421) Stack trace: #0 unknown(0): spl_autoload_call() #1 E:\xampp\htdocs\LPForms\protected\extensions\simpleWorkflow\SWNode.php(50): is_a() #2 E:\xampp\htdocs\LPForms\protected\extensions\simpleWorkflow\SWNode.php(118): SWNode->__construct() #3 E:\xampp\htdocs\LPForms\protected\extensions\simpleWorkflow\SWNode.php(77): SWNode->_loadTransition() #4 E:\xampp\htdocs\LPForms\protected\extensions\simpleWorkflow\SWPhpWorkflowSource.php(87): SWNode->__construct() #5 E:\xampp\htdocs\LPForms\protected\extensions\simpleWorkflow\SWPhpWorkflowSource.php(63): SWPhpWorkflowSource->_createWorkflow() #6 E:\xampp\htdocs\LPForms\protected\extensions\simpleWorkflow\SWPhpWorkflowSource.php(202): SWPhpWorkflowSource->_load() #7 E:\xampp\htdocs\LPForms\protected\extensions\simpleWorkflow\SWActiveRecordBehavior.php(311): SWPhpWorkflowSource->getInitialNode() #8 E:\xampp\htdocs\LPForms\protected\extensions\simpleWorkflow\SWActiveRecordBehavior.php(232): SWActiveRecordBehavior->swInsertToWorkflow() #9 E:\xampp\htdocs\LPForms\protected\extensions\simpleWorkflow\SWActiveRecordBehavior.php(208): SWActiveRecordBehavior->initialize() #10 E:\xampp\framework\base\CComponent.php(336): SWActiveRecordBehavior->attach() #11 E:\xampp\framework\base\CComponent.php(303): DemandeClient->attachBehavior() #12 E:\xampp\framework\db\ar\CActiveRecord.php(373): DemandeClient->attachBehaviors() #13 E:\xampp\framework\db\ar\CActiveRecord.php(387): model() #14 E:\xampp\framework\db\ar\CActiveRecord.php(62): DemandeClient->getMetaData() #15 E:\xampp\htdocs\LPForms\protected\controllers\DemandeClientController.php(48): DemandeClient->__construct() #16 E:\xampp\framework\web\actions\CInlineAction.php(50): DemandeClientController->actionCreate() #17 E:\xampp\framework\web\CController.php(300): CInlineAction->runWithParams() #18 E:\xampp\framework\web\filters\CFilterChain.php(134): DemandeClientController->runAction() #19 E:\xampp\framework\web\filters\CFilter.php(41): CFilterChain->run() #20 E:\xampp\framework\web\CController.php(1144): CAccessControlFilter->filter() #21 E:\xampp\framework\web\filters\CInlineFilter.php(59): DemandeClientController->filterAccessControl() #22 E:\xampp\framework\web\filters\CFilterChain.php(131): CInlineFilter->filter() #23 E:\xampp\framework\web\CController.php(283): CFilterChain->run() #24 E:\xampp\framework\web\CController.php(257): DemandeClientController->runActionWithFilters() #25 E:\xampp\framework\web\CWebApplication.php(277): DemandeClientController->run() #26 E:\xampp\framework\web\CWebApplication.php(136): CWebApplication->runController() #27 E:\xampp\framework\base\CApplication.php(158): CWebApplication->processRequest() #28 E:\xampp\htdocs\LPForms\index.php(13): CWebApplication->run() REQUEST_URI=/lpforms/index.php?r=demandeclient/create
Posted 03 April 2012 - 01:26 AM
Posted 10 April 2012 - 03:08 AM
Posted 09 May 2012 - 11:02 PM
return array(
'initial' => 'new',
'node' => array(
array('id' => 'new', 'transition' => 'pending,rejected'),
array('id' => 'pending', 'transition' => 'activated,rejected'),
array('id' => 'rejected', 'transition' => 'pending'),
array('id' => 'activated'),
)
);
Posted 10 May 2012 - 07:42 AM
jmariani, on 09 May 2012 - 11:02 PM, said:
return array(
'initial' => 'new',
'node' => array(
array('id' => 'new', 'transition' => 'pending,rejected'),
array('id' => 'pending', 'transition' => 'activated,rejected'),
array('id' => 'rejected', 'transition' => 'pending'),
array('id' => 'activated'),
)
);
Posted 10 May 2012 - 09:01 AM
Posted 11 May 2012 - 02:50 AM
$workflowId = $model->swGetDefaultWorkflowId();
Yii::app()->swSource->getInitialNode($workflowId); // other option is to call swGetNextStatus() because if the model is not in a workflow, this method will return // the initial node of the default workflow. $next = $model->swGetNextStatus(); echo $next[0]->toString();
Posted 31 July 2012 - 09:07 PM
Raoul, on 11 May 2012 - 02:50 AM, said:
$workflowId = $model->swGetDefaultWorkflowId();
Yii::app()->swSource->getInitialNode($workflowId); // other option is to call swGetNextStatus() because if the model is not in a workflow, this method will return // the initial node of the default workflow. $next = $model->swGetNextStatus(); echo $next[0]->toString();