qMax wrote:
I'm implementing PublishTree/DeactivateTree.
/*
public class Publish extends PublicationTask implements SiteTreeNodeVisitor;
public class PublishTree extends Publish;
*/
the question occured:
in which cases i should just setResult(FAILURE),

That should be used when the task could not be executed
because some conditions are not supplied (e.g., the workflow
state could not be advanced). Everything stays under control.

BTW, I'm not quite sure if the result is evaluated at all.

and in which should i throw ExecutionException from .execute() method?
Is this Exception handled somwhere ?

An exception should be thrown when a non-predictable problem
occurs (e.g., an IO error).

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to