Class WorkflowTransitionImpl
java.lang.Object
com.atlassian.jira.functest.framework.admin.WorkflowTransitionImpl
- All Implemented Interfaces:
WorkflowTransition
Default implementation of
WorkflowTransition
.- Since:
- v4.3
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.admin.WorkflowTransition
WorkflowTransition.Tabs
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowTransitionImpl
(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData) WorkflowTransitionImpl
(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel) -
Method Summary
Modifier and TypeMethodDescriptionaddWorkflowCondition
(String workflowConditionKey) Add workflow condition with given workflowConditionKey to the transition.addWorkflowCondition
(String workflowConditionKey, Map<String, String> configFormParams) Add workflow condition with given workflowConditionKey to the transition.addWorkflowFunction
(String workflowFunctionKey) Add workflow function with given workflowFunctionKey to the transition.addWorkflowFunction
(String workflowFunctionKey, Map<String, String> configFormParams) Add workflow function with given workflowFunctionKey to the transition.addWorkflowValidator
(String workflowValidatorKey) Add workflow validator with given workflowValidatorKey to the transition.addWorkflowValidator
(String workflowValidatorKey, Map<String, String> configFormParams) Add workflow validator with given workflowValidatorKey to the transition.boolean
canAddWorkflowCondition
(String workflowConditionKey) Check if condition with given workflowConditionKey can be added to this transition, i.e.boolean
canAddWorkflowFunction
(String workflowFunctionKey) Check if function with given workflowFunctionKey can be added to this transition, i.e.boolean
canAddWorkflowValidator
(String workflowValidatorKey) Check if validator with given workflowValidatorKey can be added to this transition, i.e.Go to the 'Add Workflow Condition' form where user can choose between available workflow conditions to add to the transition.Go to the 'Add Workflow Function' form where user can choose between available workflow functions to add to the transition.Go to the 'Add Workflow Validator' form where user can choose among available workflow validators to add to the transition.boolean
Check if given tab is currently openOpen given tab.
-
Constructor Details
-
WorkflowTransitionImpl
public WorkflowTransitionImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel) -
WorkflowTransitionImpl
@Inject public WorkflowTransitionImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
-
-
Method Details
-
canAddWorkflowCondition
Description copied from interface:WorkflowTransition
Check if condition with given workflowConditionKey can be added to this transition, i.e. is present on the 'Add Workflow Condition' screen- Specified by:
canAddWorkflowCondition
in interfaceWorkflowTransition
- Parameters:
workflowConditionKey
- key of the condition to check- Returns:
true
, if condition can be added to this transition
-
goToAddWorkflowCondition
Description copied from interface:WorkflowTransition
Go to the 'Add Workflow Condition' form where user can choose between available workflow conditions to add to the transition.- Specified by:
goToAddWorkflowCondition
in interfaceWorkflowTransition
- Returns:
- this workflow transition
-
addWorkflowCondition
Description copied from interface:WorkflowTransition
Add workflow condition with given workflowConditionKey to the transition. For non-configurable conditions only, otherwise useWorkflowTransition.addWorkflowCondition(String, java.util.Map)
.- Specified by:
addWorkflowCondition
in interfaceWorkflowTransition
- Parameters:
workflowConditionKey
- full plugin key of the workflow condition to add- Returns:
- this workflow transition
-
addWorkflowCondition
public WorkflowTransition addWorkflowCondition(String workflowConditionKey, Map<String, String> configFormParams) Description copied from interface:WorkflowTransition
Add workflow condition with given workflowConditionKey to the transition. Use configFormParams to provide parameters for the custom condition configuration form.- Specified by:
addWorkflowCondition
in interfaceWorkflowTransition
- Parameters:
workflowConditionKey
- full plugin key of the workflow condition to addconfigFormParams
- form parameters to fill the configure condition screen- Returns:
- this workflow transition
-
goToAddWorkflowValidator
Description copied from interface:WorkflowTransition
Go to the 'Add Workflow Validator' form where user can choose among available workflow validators to add to the transition.- Specified by:
goToAddWorkflowValidator
in interfaceWorkflowTransition
- Returns:
- this workflow transition
-
canAddWorkflowValidator
Description copied from interface:WorkflowTransition
Check if validator with given workflowValidatorKey can be added to this transition, i.e. is present on the 'Add Workflow Validator' screen- Specified by:
canAddWorkflowValidator
in interfaceWorkflowTransition
- Parameters:
workflowValidatorKey
- key of the validator to check- Returns:
true
, if condition can be added to this transition
-
addWorkflowValidator
Description copied from interface:WorkflowTransition
Add workflow validator with given workflowValidatorKey to the transition. For non-configurable validators only, otherwise useWorkflowTransition.addWorkflowValidator(String, java.util.Map)
.- Specified by:
addWorkflowValidator
in interfaceWorkflowTransition
- Parameters:
workflowValidatorKey
- full plugin key of the workflow validator to add- Returns:
- this workflow transition
-
addWorkflowValidator
public WorkflowTransition addWorkflowValidator(String workflowValidatorKey, Map<String, String> configFormParams) Description copied from interface:WorkflowTransition
Add workflow validator with given workflowValidatorKey to the transition. Use configFormParams to provide parameters for the custom validator configuration form.- Specified by:
addWorkflowValidator
in interfaceWorkflowTransition
- Parameters:
workflowValidatorKey
- full plugin key of the workflow validator to addconfigFormParams
- form parameters to fill the configure validator screen- Returns:
- this workflow transition
-
canAddWorkflowFunction
Description copied from interface:WorkflowTransition
Check if function with given workflowFunctionKey can be added to this transition, i.e. is present on the 'Add Workflow Function' screen- Specified by:
canAddWorkflowFunction
in interfaceWorkflowTransition
- Parameters:
workflowFunctionKey
- key of the function to check- Returns:
true
, if condition can be added to this transition
-
goToAddWorkflowFunction
Description copied from interface:WorkflowTransition
Go to the 'Add Workflow Function' form where user can choose between available workflow functions to add to the transition.- Specified by:
goToAddWorkflowFunction
in interfaceWorkflowTransition
- Returns:
- this workflow transition
-
addWorkflowFunction
Description copied from interface:WorkflowTransition
Add workflow function with given workflowFunctionKey to the transition. This is to use for workflow functions that do not define any configuration screen, i.e. after submitting the function type there is no function-specific configuration screen. Otherwise useWorkflowTransition.addWorkflowFunction(String, java.util.Map)
.- Specified by:
addWorkflowFunction
in interfaceWorkflowTransition
- Parameters:
workflowFunctionKey
- full plugin key of the workflow function to add- Returns:
- this workflow transition
-
addWorkflowFunction
public WorkflowTransition addWorkflowFunction(String workflowFunctionKey, Map<String, String> configFormParams) Description copied from interface:WorkflowTransition
Add workflow function with given workflowFunctionKey to the transition. This is to use in case where the function has custom configuration screen. Pass the custom parameter values (by HTML filed name) in the configFormParams map. Otherwise useWorkflowTransition.addWorkflowFunction(String)
instead, or pass empty map.- Specified by:
addWorkflowFunction
in interfaceWorkflowTransition
- Parameters:
workflowFunctionKey
- full plugin key of the workflow function to addconfigFormParams
- form parameters to fill the configure function screen- Returns:
- this workflow transition
-
isTabOpen
Description copied from interface:WorkflowTransition
Check if given tab is currently open- Specified by:
isTabOpen
in interfaceWorkflowTransition
- Parameters:
tab
- tab to check- Returns:
true
, if given tab is currently open
-
openTab
Description copied from interface:WorkflowTransition
Open given tab.- Specified by:
openTab
in interfaceWorkflowTransition
- Parameters:
tab
- tab to open- Returns:
- this workflow transition instance
-