public class WorkflowTransitionImpl extends AbstractFuncTestUtil implements WorkflowTransition
WorkflowTransition.WorkflowTransition.TabsenvironmentData, FS, locators, logger, logIndentLevel, tester| Constructor and Description |
|---|
WorkflowTransitionImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData,
int logIndentLevel) |
| Modifier and Type | Method and Description |
|---|---|
WorkflowTransition |
addWorkflowCondition(String workflowConditionKey)
Add workflow condition with given workflowConditionKey to the transition.
|
WorkflowTransition |
addWorkflowCondition(String workflowConditionKey,
Map<String,String> configFormParams)
Add workflow condition with given workflowConditionKey to the transition.
|
WorkflowTransition |
addWorkflowFunction(String workflowFunctionKey)
Add workflow function with given workflowFunctionKey to the transition.
|
WorkflowTransition |
addWorkflowFunction(String workflowFunctionKey,
Map<String,String> configFormParams)
Add workflow function with given workflowFunctionKey to the transition.
|
WorkflowTransition |
addWorkflowValidator(String workflowValidatorKey)
Add workflow validator with given workflowValidatorKey to the transition.
|
WorkflowTransition |
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.
|
WorkflowTransition |
goToAddWorkflowCondition()
Go to the 'Add Workflow Condition' form where user can choose between available workflow conditions to add to
the transition.
|
WorkflowTransition |
goToAddWorkflowFunction()
Go to the 'Add Workflow Function' form where user can choose between available workflow functions to add to
the transition.
|
WorkflowTransition |
goToAddWorkflowValidator()
Go to the 'Add Workflow Validator' form where user can choose among available workflow validators to add to
the transition.
|
boolean |
isTabOpen(WorkflowTransition.Tabs tab)
Check if given tab is currently open
|
WorkflowTransition |
openTab(WorkflowTransition.Tabs tab)
Open given tab.
|
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPagepublic WorkflowTransitionImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData,
int logIndentLevel)
public boolean canAddWorkflowCondition(String workflowConditionKey)
WorkflowTransitioncanAddWorkflowCondition in interface WorkflowTransitionworkflowConditionKey - key of the condition to checktrue, if condition can be added to this transitionpublic WorkflowTransition goToAddWorkflowCondition()
WorkflowTransitiongoToAddWorkflowCondition in interface WorkflowTransitionpublic WorkflowTransition addWorkflowCondition(String workflowConditionKey)
WorkflowTransitionAdd workflow condition with given workflowConditionKey to the transition.
For non-configurable conditions only, otherwise use WorkflowTransition.addWorkflowCondition(String, java.util.Map).
addWorkflowCondition in interface WorkflowTransitionworkflowConditionKey - full plugin key of the workflow condition to addpublic WorkflowTransition addWorkflowCondition(String workflowConditionKey, Map<String,String> configFormParams)
WorkflowTransitionAdd workflow condition with given workflowConditionKey to the transition.
Use configFormParams to provide parameters for the custom condition configuration form.
addWorkflowCondition in interface WorkflowTransitionworkflowConditionKey - full plugin key of the workflow condition to addconfigFormParams - form parameters to fill the configure condition screenpublic WorkflowTransition goToAddWorkflowValidator()
WorkflowTransitiongoToAddWorkflowValidator in interface WorkflowTransitionpublic boolean canAddWorkflowValidator(String workflowValidatorKey)
WorkflowTransitioncanAddWorkflowValidator in interface WorkflowTransitionworkflowValidatorKey - key of the validator to checktrue, if condition can be added to this transitionpublic WorkflowTransition addWorkflowValidator(String workflowValidatorKey)
WorkflowTransitionAdd workflow validator with given workflowValidatorKey to the transition.
For non-configurable validators only, otherwise use WorkflowTransition.addWorkflowValidator(String, java.util.Map).
addWorkflowValidator in interface WorkflowTransitionworkflowValidatorKey - full plugin key of the workflow validator to addpublic WorkflowTransition addWorkflowValidator(String workflowValidatorKey, Map<String,String> configFormParams)
WorkflowTransitionAdd workflow validator with given workflowValidatorKey to the transition.
Use configFormParams to provide parameters for the custom validator configuration form.
addWorkflowValidator in interface WorkflowTransitionworkflowValidatorKey - full plugin key of the workflow validator to addconfigFormParams - form parameters to fill the configure validator screenpublic boolean canAddWorkflowFunction(String workflowFunctionKey)
WorkflowTransitioncanAddWorkflowFunction in interface WorkflowTransitionworkflowFunctionKey - key of the function to checktrue, if condition can be added to this transitionpublic WorkflowTransition goToAddWorkflowFunction()
WorkflowTransitionGo to the 'Add Workflow Function' form where user can choose between available workflow functions to add to the transition.
goToAddWorkflowFunction in interface WorkflowTransitionpublic WorkflowTransition addWorkflowFunction(String workflowFunctionKey)
WorkflowTransitionAdd 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 use
WorkflowTransition.addWorkflowFunction(String, java.util.Map).
addWorkflowFunction in interface WorkflowTransitionworkflowFunctionKey - full plugin key of the workflow function to addpublic WorkflowTransition addWorkflowFunction(String workflowFunctionKey, Map<String,String> configFormParams)
WorkflowTransitionAdd 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 use WorkflowTransition.addWorkflowFunction(String)
instead, or pass empty map.
addWorkflowFunction in interface WorkflowTransitionworkflowFunctionKey - full plugin key of the workflow function to addconfigFormParams - form parameters to fill the configure function screenpublic boolean isTabOpen(WorkflowTransition.Tabs tab)
WorkflowTransitionisTabOpen in interface WorkflowTransitiontab - tab to checktrue, if given tab is currently openpublic WorkflowTransition openTab(WorkflowTransition.Tabs tab)
WorkflowTransitionopenTab in interface WorkflowTransitiontab - tab to openCopyright © 2002-2015 Atlassian. All Rights Reserved.