org.exoplatform.services.workflow.impl.bonita
Class CommandTimer

java.lang.Object
  extended by org.exoplatform.services.workflow.impl.bonita.CommandTimer
All Implemented Interfaces:
java.io.Serializable, org.ow2.bonita.pvm.internal.cmd.Command<java.lang.Boolean>

public class CommandTimer
extends java.lang.Object
implements org.ow2.bonita.util.Command<java.lang.Boolean>

The CommandTimer modifies the due date of all timers attached to an activity. It should be used if you need to set the due date of a timer with a process property.

Author:
Rodrigue Le Gall
See Also:
Serialized Form

Constructor Summary
CommandTimer(org.ow2.bonita.facade.uuid.ProcessInstanceUUID processUUID, java.lang.String activityId, java.util.Date aDueDate)
           
 
Method Summary
 java.lang.Boolean execute(org.ow2.bonita.pvm.env.Environment env)
          Execute the modification of the timers' due date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandTimer

public CommandTimer(org.ow2.bonita.facade.uuid.ProcessInstanceUUID processUUID,
                    java.lang.String activityId,
                    java.util.Date aDueDate)
Method Detail

execute

public java.lang.Boolean execute(org.ow2.bonita.pvm.env.Environment env)
                          throws java.lang.Exception
Execute the modification of the timers' due date.

Specified by:
execute in interface org.ow2.bonita.pvm.internal.cmd.Command<java.lang.Boolean>
Returns:
boolean true: timers were succefully updated, false: no timer found
Throws:
java.lang.Exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.