Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
en:start:task_management [2016/07/07 14:56]
admin [Task Development]
en:start:task_management [2016/07/07 14:56]
admin [WfTask*.php]
Line 34: Line 34:
 </​WRAP>​ </​WRAP>​
  
 +This file must have a special structure.
 +
 +<​Code>​
 +<?php
 +require_once(realpath(dirname(__FILE__).'/​../​autoload_wf.php'​));​
 + 
 +class dummyTypeClass extends \Workflow\Task
 +{
 +    public function handleTask(&​$context) {
 +        /* Insert here source code to execute the task */
 + 
 +        return "​yes";​
 +    }
 + 
 +    public function beforeGetTaskform($viewer) {
 +        /* Insert here source code to create custom configurations pages */
 +    }
 +    public function beforeSave(&​$values) {
 +        /* Insert here source code to modify the values the user submit on configuration */
 +    }
 +}
 +</​Code>​