Interface ICondition<T extends IWorkflowObject>
- Type Parameters:
T
- type of the target object, seeICallContext.getTarget()
; useIWorkflowObject
if the condition is general, or specific prototype interface if the condition is specific for that prototype
- All Known Subinterfaces:
IWorkflowCondition<T>
public interface ICondition<T extends IWorkflowObject>
Deprecated. Use
IWorkflowCondition
instead.
Workflow conditions assigned to a particular workflow action are
checked to determine, whether the action is permitted at given time.
The conditions determine, whether the workflow action is even listed in the set of available actions.
The custom conditions can be contributed using the
com.polarion.alm.tracker.workflow.conditions
configuration
point. The contribution looks like this:
<contribution configuration-id="com.polarion.alm.tracker.workflow.conditions"> <condition name="Your-unique-condition-name" clazz="com.your.ConditionClassName" prototype="prototype like WorkItem or *" /> </contribution>
- Author:
- dobisekm
-
Method Summary
Modifier and TypeMethodDescriptionboolean
passesCondition
(ICallContext<T> context, IArguments arguments) Deprecated.whole interface is now deprecated.
-
Method Details
-
passesCondition
@Deprecated boolean passesCondition(@NotNull ICallContext<T> context, @NotNull IArguments arguments) Deprecated.whole interface is now deprecated. SeeIWorkflowCondition.passesConditionWithFailureMessage(ICallContext, IArguments)
Checks, whether the given workflow Action is permitted.- Parameters:
context
- theICallContext
object representing the context for this executionarguments
- theIArguments
object representing the arguments specified in the workflow configuration- Returns:
true
if the action is allowed,false
otherwise.
-