It belongs to the Workflow Designer and must not be distributed without complete extension **/ /* vt6 ready */ require_once(realpath(dirname(__FILE__).'/../autoload_wf.php')); require_once(dirname(__FILE__).'/../VTComplexeCondition.php'); class WfTaskConditional extends Workflow\Task { public function init() { $preset = $this->addPreset("Condition", "condition", array('environment' => true)); } public function handleTask(&$context) { $conditions = $this->get("condition"); require_once('modules/Workflow2/VTConditionCheck.php'); $checked = new \Workflow\ConditionCheck(); $logger = \Workflow\ExecutionLogger::getCurrentInstance(); $checked->setLogger($logger); $return = $checked->check($conditions, $context); $logger->log("Complete Result: ".intval($return)); // Debug Mode if(isset($_COOKIE["stefanDebug"]) && $_COOKIE["stefanDebug"] >= "2") { echo "
";
            /* ONLY DEBUG*/ var_dump($conditions);
            echo "
"; } if($return === true) { return "yes"; } else { return "no"; } } }