<?php

error_reporting(E_ALL);
require_once 'bootstrap.php';
$config = Ezer_Config::createFromPath('config.xml');
Propel::setConfiguration($config->database->toArray());
Propel::initialize();
// find process
$process = Ezer_PropelStepPeer::retrieveProcessByName('Foreach Parallel');
// insert case
$variables = array('message' => 'Hi there', 'users' => array('Tan-Tan', 'Johnathan', 'Uri'));
$case = new Ezer_PropelCase();
$case->setProcessId($process->getId());
$case->setPriority(1);
$case->setStatus(Ezer_IntStep::STEP_STATUS_ACTIVE);
$case->setVariables($variables);
$case->save();
<?php

error_reporting(E_ALL);
require_once 'bootstrap.php';
$config = Ezer_Config::createFromPath('config.xml');
Propel::setConfiguration($config->database->toArray());
Propel::initialize();
// find process
$process = Ezer_PropelStepPeer::retrieveProcessByName('Complex Async Set');
// insert case
$variables = array('title' => 'New Title', 'counter' => array('title' => 'Original Title', 'counts' => array(array('start' => 6, 'stop' => 10), array('start' => 9, 'stop' => 12))));
$case = new Ezer_PropelCase();
$case->setProcessId($process->getId());
$case->setPriority(1);
$case->setStatus(Ezer_IntStep::STEP_STATUS_ACTIVE);
$case->setVariables($variables);
$case->save();
<?php

error_reporting(E_ALL);
require_once 'bootstrap.php';
$config = Ezer_Config::createFromPath('config.xml');
Propel::setConfiguration($config->database->toArray());
Propel::initialize();
// find process
$process = Ezer_PropelStepPeer::retrieveProcessByName('Else If');
// insert case
$variables = array('condition' => 5, 'expression' => 'false', 'beginMessage' => 'Hi Tan-Tan', 'endMessage' => 'Bye Tan-Tan', 'ifMessage' => 'Condition is TRUE', 'elseMessage' => 'All condition are FALSE', 'elseIfMessage1' => 'Else 1 condition is TRUE', 'elseIfMessage2' => 'Else 2 condition is TRUE');
$case = new Ezer_PropelCase();
$case->setProcessId($process->getId());
$case->setPriority(1);
$case->setStatus(Ezer_IntStep::STEP_STATUS_ACTIVE);
$case->setVariables($variables);
$case->save();
<?php

error_reporting(E_ALL);
require_once 'bootstrap.php';
$config = Ezer_Config::createFromPath('config.xml');
Propel::setConfiguration($config->database->toArray());
Propel::initialize();
// find process
$process = Ezer_PropelStepPeer::retrieveProcessByName('Foreach Serial');
// insert case
$variables = array('message' => 'Hi there', 'users' => array('Tan-Tan', 'Johnathan', 'Uri'));
$case = new Ezer_PropelCase();
$case->setProcessId($process->getId());
$case->setPriority(1);
$case->setStatus(Ezer_IntStep::STEP_STATUS_ACTIVE);
$case->setVariables($variables);
$case->save();
Example #5
0
<?php

error_reporting(E_ALL);
require_once 'bootstrap.php';
$config = Ezer_Config::createFromPath('config.xml');
Propel::setConfiguration($config->database->toArray());
Propel::initialize();
// find process
$process = Ezer_PropelStepPeer::retrieveProcessByName('HelloWorld');
// insert case
$variables = array('hello' => 'Hi Tan-Tan', 'bye' => 'Goodbye Johnathan');
$case = new Ezer_PropelCase();
$case->setProcessId($process->getId());
$case->setPriority(1);
$case->setStatus(Ezer_IntStep::STEP_STATUS_ACTIVE);
$case->setVariables($variables);
$case->save();
Example #6
0
<?php

error_reporting(E_ALL);
require_once 'bootstrap.php';
$config = Ezer_Config::createFromPath('config.xml');
Propel::setConfiguration($config->database->toArray());
Propel::initialize();
// find process
$process = Ezer_PropelStepPeer::retrieveProcessByName('Flow');
// insert case
$variables = array('count' => 5, 'left1' => 'Left1', 'left2' => 'Left2', 'right1' => 'Right1', 'right2' => 'Right2', 'before' => 'Before', 'after' => 'After');
$case = new Ezer_PropelCase();
$case->setProcessId($process->getId());
$case->setPriority(1);
$case->setStatus(Ezer_IntStep::STEP_STATUS_ACTIVE);
$case->setVariables($variables);
$case->save();
<?php

error_reporting(E_ALL);
require_once 'bootstrap.php';
$config = Ezer_Config::createFromPath('config.xml');
Propel::setConfiguration($config->database->toArray());
Propel::initialize();
// find process
$process = Ezer_PropelStepPeer::retrieveProcessByName('Complex Count');
// insert case
$variables = array('title' => 'New Title', 'counter' => array('title' => 'Original Title', 'counts' => array(array('start' => 6, 'stop' => 10), array('start' => 9, 'stop' => 12))));
$case = new Ezer_PropelCase();
$case->setProcessId($process->getId());
$case->setPriority(1);
$case->setStatus(Ezer_IntStep::STEP_STATUS_ACTIVE);
$case->setVariables($variables);
$case->save();