@IntegrationTest public class WorkflowTest extends HybrisJUnit4TransactionalTest
| Modifier and Type | Class and Description |
|---|---|
protected static class |
WorkflowTest.ACTIONCODES |
protected static class |
WorkflowTest.DECISIONCODES |
| Modifier and Type | Field and Description |
|---|---|
protected WorkflowManager |
manager
Reference to the manager instance.
|
protected WorkflowTemplate |
testTemplate
Template instance created at each set up.
|
protected Workflow |
testWorkflow
workflow instance created at each set up.
|
defaultLanguage, jaloSession| Constructor and Description |
|---|
WorkflowTest() |
| Modifier and Type | Method and Description |
|---|---|
protected AutomatedWorkflowActionTemplate |
createAutomatedWorkflowActionTemplate(User user,
String code,
EnumerationValue actionType,
WorkflowTemplate workflow,
Class jobClass)
Creates new automated action template.
|
protected User |
createUser(String userName)
Creates a user instance using given uid.
|
protected WorkflowActionTemplate |
createWorkflowActionTemplate(User user,
String code,
EnumerationValue actionType,
WorkflowTemplate workflow)
Creates new action template.
|
protected void |
createWorkflowActionTemplateLinkTemplateRelation(WorkflowDecisionTemplate decisionTemplate,
WorkflowActionTemplate toAction,
Boolean hasAndConnection) |
protected WorkflowDecisionTemplate |
createWorkflowDecisionTemplate(String code,
WorkflowActionTemplate actionTemplate)
Creates new decision template.
|
protected WorkflowTemplate |
createWorkflowTemplate(User user)
Creates a workflow template with given user assigned.
|
protected WorkflowTemplate |
createWorkflowTemplate(User owner,
String code,
String desc)
Creates new workflow template using given user, code, and description.
|
protected WorkflowTemplate |
createWorkflowTemplate(User owner,
String code,
String desc,
String activationScript)
Creates new workflow template using given user, code, description and activation script.
|
protected WorkflowAction |
getAction(String code)
Gets the action with given code from test workflow instance.
|
protected WorkflowActionTemplate |
getActionTemplate(String code)
Gets the action template with given code from test workflow template.
|
protected WorkflowDecision |
getDecision(String code,
WorkflowAction action)
Gets the decision with given code from test workflow instance.
|
void |
setUp() |
void |
testActionsSize()
check actions size
|
void |
testTemplateActionsSize()
check actions template size
|
finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedprotected WorkflowManager manager
protected WorkflowTemplate testTemplate
protected Workflow testWorkflow
public void testTemplateActionsSize()
public void testActionsSize()
protected WorkflowTemplate createWorkflowTemplate(User user)
user - user instance to use for templateprotected User createUser(String userName)
userName - user id used for user creationprotected WorkflowTemplate createWorkflowTemplate(User owner, String code, String desc)
owner - user assigned to new templatecode - code of new templatedesc - description assigned to templateprotected WorkflowTemplate createWorkflowTemplate(User owner, String code, String desc, String activationScript)
owner - user assigned to new templatecode - code of new templatedesc - description assigned to templateactivationScript - code of the activation scriptprotected WorkflowActionTemplate createWorkflowActionTemplate(User user, String code, EnumerationValue actionType, WorkflowTemplate workflow)
user - user assigned to templatecode - code of templateworkflow - workflow assigned to action templateprotected AutomatedWorkflowActionTemplate createAutomatedWorkflowActionTemplate(User user, String code, EnumerationValue actionType, WorkflowTemplate workflow, Class jobClass)
user - user assigned to templatecode - code of templateworkflow - workflow assigned to action templateprotected WorkflowDecisionTemplate createWorkflowDecisionTemplate(String code, WorkflowActionTemplate actionTemplate)
code - code of templateactionTemplate - action template assigned to decision templateprotected void createWorkflowActionTemplateLinkTemplateRelation(WorkflowDecisionTemplate decisionTemplate, WorkflowActionTemplate toAction, Boolean hasAndConnection)
decisionTemplate - toAction - hasAndConnection - protected WorkflowAction getAction(String code)
code - code of needed actionprotected WorkflowDecision getDecision(String code, WorkflowAction action)
code - code of needed decisionprotected WorkflowActionTemplate getActionTemplate(String code)
code - code of needed actionCopyright © 2017 SAP SE. All Rights Reserved.