Files
luos/workflow/engine/methods/bpmn/processmap.php

31 lines
1009 B
PHP
Raw Normal View History

<?php
2011-02-04 22:45:04 +00:00
if( ! isset($_GET['PRO_UID']) )
throw new Exception('The Process ID was not set!');
2011-02-10 17:01:21 +00:00
require_once 'classes/model/Process.php';
$process = ProcessPeer::retrieveByPK( $_GET['PRO_UID'] );
if( get_class($process) != 'Process' ) {
throw new Exception("The Process with UID: {$_GET['PRO_UID']} doesn't exist!");
}
$processUID = $_GET['PRO_UID'];
$_SESSION['PROCESS'] = $processUID;
$_SESSION['PROCESSMAP'] = 'BPMN';
$oHeadPublisher =& headPublisher::getSingleton();
2011-02-24 15:15:11 +00:00
$oHeadPublisher->usingExtJs('ux/miframe');
2011-02-04 22:45:04 +00:00
2011-02-03 15:03:44 +00:00
//$oHeadPublisher->setExtSkin( 'xtheme-gray');
2011-02-24 15:15:11 +00:00
$oHeadPublisher->addExtJsScript('bpmn/processmap', true ); //adding a javascript file .js
$oHeadPublisher->addExtJsScript('bpmn/ProcessOptions',true);
$oHeadPublisher->addContent( 'bpmn/processmap'); //adding a html file .html.
2011-02-24 15:15:11 +00:00
2011-02-04 22:45:04 +00:00
$oHeadPublisher->assign('pro_title', $process->getProTitle());
$oHeadPublisher->assign('pro_uid', $process->getProUid());
G::RenderPage('publish', 'extJs');