00001 <?php 00002 //Code to be executed before a start activity 00003 // If we didn't retrieve the instance before 00004 if(empty($instance->instanceId) && isset($_REQUEST['iid'])) { 00005 // in case we're looping back to a start activity, we need to retrieve the instance 00006 $instance->getInstance($_REQUEST['iid']); 00007 } else { 00008 // otherwise we'll create an instance when this activity is completed 00009 } 00010 00011 ?>