public function onAfterWrite()
    {
        $instance = $this->getWorkflowInstance();
        if ($instance && $instance->CurrentActionID) {
            $action = $instance->CurrentAction()->BaseAction()->targetUpdated($instance);
        }
    }
public function onAfterWrite()
    {
        $instance = $this->getWorkflowInstance();
        if ($instance && $instance->CurrentActionID) {
            $action = $instance->CurrentAction()->BaseAction()->targetUpdated($instance);
        }
    }
public function onAfterWrite ( ) { $ instance = $ this -> getWorkflowInstance ( ) ; if ( $ instance && $ instance -> CurrentActionID ) { $ action = $ instance -> CurrentAction ( ) -> BaseAction ( ) -> targetUpdated ( $ instance ) ; } }
After a workflow item is written, we notify the
workflow so that it can take action if needbe
After a workflow item is written we notify the workflow so that it can take action if needbe