source: branches/1.2/workflow/inc/engine/compiler/agents_pos.php @ 1349

Revision 1349, 470 bytes 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 *
Line 
1<?php
2//Code to be executed after an activity by agents
3if (!($instance->getActivityCompleted()))
4{
5  foreach ($this->agents as $agent_type => $ui_agent)
6  {
7    if(!($ui_agent->run_activity_pos()))
8    {
9      galaxia_show_error($ui_agent->get_error(), false);
10    }
11
12  }
13}
14else
15{
16  foreach ($this->agents as $agent_type => $ui_agent)
17  {
18    if (!($ui_agent->run_activity_completed_pos()))
19    {
20      galaxia_show_error($ui_agent->get_error(), false);
21    }
22  }
23}
24?>
Note: See TracBrowser for help on using the repository browser.