Revision 1349,
1.0 KB
checked in by niltonneto, 15 years ago
(diff) |
Ticket #561 - Inclusão do módulo Workflow faltante nessa versão.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[1349] | 1 | <?php |
---|
| 2 | /** |
---|
| 3 | * Retorna o link para a próxima atividade |
---|
| 4 | * @return string |
---|
| 5 | * @license http://www.gnu.org/copyleft/gpl.html GPL |
---|
| 6 | * @package Workflow |
---|
| 7 | * @subpackage local |
---|
| 8 | * @access public |
---|
| 9 | */ |
---|
| 10 | function wf_get_next_activity_link() |
---|
| 11 | { |
---|
| 12 | /* load some variables */ |
---|
| 13 | $instance =& $GLOBALS['workflow']['wf_runtime']; |
---|
| 14 | $currentActivity = $instance->activity_id; |
---|
| 15 | $instanceId = $instance->instance_id; |
---|
| 16 | $urlBase = $GLOBALS['phpgw_info']['server']['webserver_url']; |
---|
| 17 | |
---|
| 18 | /* determine the next activity */ |
---|
| 19 | if (isset($instance->instance->changed['nextActivity'][$currentActivity])) |
---|
| 20 | $nextActivityId = $instance->instance->changed['nextActivity'][$currentActivity]; |
---|
| 21 | else |
---|
| 22 | if (isset($instance->instance->nextActivity[$currentActivity])) |
---|
| 23 | $nextActivityId = $instance->instance->nextActivity[$currentActivity]; |
---|
| 24 | |
---|
| 25 | if (isset($nextActivityId) && ($instanceId != 0)) |
---|
| 26 | $output = "$urlBase/index.php?menuaction=workflow.run_activity.go&activity_id=$nextActivityId&iid=$instanceId"; |
---|
| 27 | else |
---|
| 28 | $output = "$urlBase/workflow/index.php?start_tab=0"; |
---|
| 29 | |
---|
| 30 | return $output; |
---|
| 31 | } |
---|
| 32 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.