|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.Workflow.Step
public static class Workflow.Step
A Step represents a State in the Workflow State Machine Each step represents an EnmeratedValue from the legal set for the workflow definition's EnumeratedProperty
| Nested Class Summary | |
|---|---|
static class |
Workflow.Step.WebCacheStep
A Step Accessor for the Web Cache Object Model |
| Method Summary | |
|---|---|
PropertyCollection |
getAccessDeniedProperties(ViewMember artifact)
returns the set of properties that must be denied access (hidden) when the workflow property for the specified artifact is in this state |
PropertyCollection |
getAccessGrantedProperties(ViewMember artifact)
returns the set of properties that may be granted read only access when the workflow property for the specified artifact is in this state |
java.lang.Object |
getAssignableValue(Property src,
java.lang.Object state,
Property trgt,
boolean interpret)
Returns the assignable value of the target property driven by dynamic default initialization when the source property changes to the new state note that setting state to NULL is a special case meaning the 'otherwise' or default condition Note also that the information provided here is extracted directly from the .xml, with context only if available. |
PropertyCollection |
getInitializedProperties(ViewMember artifact)
returns the set of properties whose values were automatically initialized when the workflow entered this step. |
Workflow.Step[] |
getNextSteps(ViewMember artifact)
returns the set of steps that can be transitioned to from this step |
EnumeratedValue[] |
getPermittedStateTransitions(ViewMember artifact)
returns the set of Enumerated Values that this artifact may transition to from this state |
User[] |
getPermittedUsers(ViewMember artifact,
ObjectProperty prprty)
Returns the set of users who are possible legal values for this property in this state |
PropertyCollection |
getRequiredProperties()
Returns the set of required properties at this step, whether or not these properties have been initialized for a particular item at that step |
PropertyCollection |
getRequiredProperties(ViewMember artifact)
returns the set of properties that require non-null or non-empty values when the workflow property for the specified artifact is in this state |
EnumeratedValue[] |
getSelectableValues(Property src,
java.lang.Object state,
EnumeratedProperty trgt)
Returns the (sub)set of enumerated values of the target property that are selectable, or specifically candidates for allowable values when the source property changes to the new state once again, based on dynamic default initialization note that setting state to NULL is a special case meaning the 'otherwise' or default condition |
PropertyCollection |
getSourceProperties()
Returns the set of source properties that trigger dynamic default initialization when in this step. |
PropertyCollection |
getTargetProperties(Property src,
java.lang.Object state)
Returns the set of target properties whose values will change, triggered by a change of the source property to the new state based on dynamic default initialization note that setting state to NULL is a special case meaning the 'otherwise' or default condition The returned set of target properties can be of any type, e.g. |
EnumeratedValue |
getValue()
Returns the value of this step |
boolean |
includeSelectedValue(Property src,
java.lang.Object state,
EnumeratedProperty trgt)
Returns true if the client should retain a field's previously selected value false if the client should remove a field's previously selected value in the event that the selected value does not appear in the current list of available selections note that setting state to NULL is a special case meaning the 'otherwise' or default condition This boolean is primarily a hint to the UI |
boolean |
isAuthorized(ViewMember artifact)
returns true if the logged in user is authorized to transition this artifact to its next step |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public EnumeratedValue getValue()
public PropertyCollection getRequiredProperties(ViewMember artifact)
artifact - the ViewMember whose properties need to be validated in
this state
public PropertyCollection getRequiredProperties()
public PropertyCollection getAccessGrantedProperties(ViewMember artifact)
artifact - the ViewMember whose properties need to be shown in
this state
public PropertyCollection getAccessDeniedProperties(ViewMember artifact)
artifact - the ViewMember whose properties need to be hidden in
this state
public EnumeratedValue[] getPermittedStateTransitions(ViewMember artifact)
artifact - the ViewMember which is about to transition to the next
step
public Workflow.Step[] getNextSteps(ViewMember artifact)
artifact - the ViewMember at a given step (possibly ready to transition to the next step)
public PropertyCollection getInitializedProperties(ViewMember artifact)
artifact - the ViewMember in this state
public User[] getPermittedUsers(ViewMember artifact,
ObjectProperty prprty)
artifact - the ViewMember whose user property is about to be
assignedprprty - the property which is about to transition to the next step
public boolean isAuthorized(ViewMember artifact)
artifact - the ViewMember which is about to transition to the next
step
public PropertyCollection getSourceProperties()
public PropertyCollection getTargetProperties(Property src,
java.lang.Object state)
src - the source propertystate - the new state that the source property can transition to
public boolean includeSelectedValue(Property src,
java.lang.Object state,
EnumeratedProperty trgt)
src - The source propertystate - the new state that the source property can transition totrgt - The affected target enumerated property (the include_selected xml attribute
of the enumLimitations node in the workflow designer .xml)
public EnumeratedValue[] getSelectableValues(Property src,
java.lang.Object state,
EnumeratedProperty trgt)
src - The source propertystate - the new state that the source property can transition totrgt - The affected target enumerated property, which can now transition to
a subset of selectable states (also defined as the enumLimitation set
in the workflow designer .xml)
public java.lang.Object getAssignableValue(Property src,
java.lang.Object state,
Property trgt,
boolean interpret)
src - The source propertystate - the new state that the source property can transition totrgt - The affected target property, which will transition to a new state based on the
assignable value as specified in the workflow designer .xml)interpret - if true, strings like
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||