egroupware_official/phpgwapi/inc/galaxia_workflow/compiler/join_pre.php

21 lines
630 B
PHP
Raw Normal View History

<?php
//Code to be executed before a join activity
// If we didn't retrieve the instance before
if(empty($instance->instanceId)) {
// This activity needs an instance to be passed to
// be started, so get the instance into $instance.
if(isset($_REQUEST['iid'])) {
$instance->getInstance($_REQUEST['iid']);
} else {
// defined in lib/Galaxia/config.php
galaxia_show_error("No instance indicated");
die;
}
}
// Set the current user for this activity
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
$instance->setActivityUser($activity_id,$GLOBALS['user']);
}
?>