Revision 795,
478 bytes
checked in by viani, 15 years ago
(diff) |
Ticket #488 - Inclusão do módulo workflow no ramo trunk do repositório Expresso.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[795] | 1 | <?php |
---|
| 2 | //Code to be executed before the end activity |
---|
| 3 | |
---|
| 4 | $this->runtime->StartRun(); |
---|
| 5 | |
---|
| 6 | //tests for access rights and lock some rows-------------------------- |
---|
| 7 | if (!($this->runtime->checkUserRun($GLOBALS['user']))) |
---|
| 8 | { |
---|
| 9 | return $this->runtime->fail(lang('You have not permission to execute this activity'), true); |
---|
| 10 | } |
---|
| 11 | if (!($GLOBALS['workflow']['__leave_activity'])) |
---|
| 12 | { |
---|
| 13 | // Set the current user for this activity |
---|
| 14 | $this->runtime->setActivityUser(); |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | $this->runtime->EndStartRun(); |
---|
| 18 | |
---|
| 19 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.