org.itracker.model
Class WorkflowScript
java.lang.Object
org.itracker.model.AbstractEntity
org.itracker.model.WorkflowScript
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Entity>, Entity
public class WorkflowScript
- extends AbstractEntity
A BeanShell script to execute on a particular event.
The script is interpreted on it's event fired
in the environment there is available:
- event (event type-id)
- fieldId (is a field id associated with event)
- currentValue (is a set of current values)
- currentErrors (is a container for occurred errors)
- currentForm (is a form instance, holding values)
currentValue will be applied to the currentForm, property field
This allows to dynamically customize the system by executing custom actions
at given extension points where an event is generated.
A WorkflowScript needs to be configured to be executed for a particular field
of a Project. This configuration is represented as a ProjectScript.
WorkflowScript - ProjectScript is a 1-N relationship.
- Author:
- ready
- See Also:
ProjectScript,
Serialized Form
| Methods inherited from class org.itracker.model.AbstractEntity |
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate |
WorkflowScript
public WorkflowScript()
getEvent
public int getEvent()
setEvent
public void setEvent(int event)
getName
public String getName()
setName
public void setName(String name)
getScript
public String getScript()
setScript
public void setScript(String script)
getNumberUses
public int getNumberUses()
setNumberUses
public void setNumberUses(int value)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2002-2012 itracker. All Rights Reserved.