@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.
|
jaloSession| Constructor and Description |
|---|
WorkflowTest() |
| Modifier and Type | Method and Description |
|---|---|
protected AutomatedWorkflowActionTemplate |
createAutomatedWorkflowActionTemplate(User user,
java.lang.String code,
EnumerationValue actionType,
WorkflowTemplate workflow,
java.lang.Class jobClass)
Creates new automated action template.
|
protected User |
createUser(java.lang.String userName)
Creates a user instance using given uid.
|
protected WorkflowActionTemplate |
createWorkflowActionTemplate(User user,
java.lang.String code,
EnumerationValue actionType,
WorkflowTemplate workflow)
Creates new action template.
|
protected void |
createWorkflowActionTemplateLinkTemplateRelation(WorkflowDecisionTemplate decisionTemplate,
WorkflowActionTemplate toAction,
java.lang.Boolean hasAndConnection) |
protected WorkflowDecisionTemplate |
createWorkflowDecisionTemplate(java.lang.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,
java.lang.String code,
java.lang.String desc)
Creates new workflow template using given user, code, and description.
|
protected WorkflowTemplate |
createWorkflowTemplate(User owner,
java.lang.String code,
java.lang.String desc,
java.lang.String activationScript)
Creates new workflow template using given user, code, description and activation script.
|
protected WorkflowAction |
getAction(java.lang.String code)
Gets the action with given code from test workflow instance.
|
protected WorkflowActionTemplate |
getActionTemplate(java.lang.String code)
Gets the action template with given code from test workflow template.
|
protected WorkflowDecision |
getDecision(java.lang.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
|
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionprotected WorkflowManager manager
protected WorkflowTemplate testTemplate
protected Workflow testWorkflow
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testTemplateActionsSize()
public void testActionsSize()
protected WorkflowTemplate createWorkflowTemplate(User user)
user - user instance to use for templateprotected User createUser(java.lang.String userName)
userName - user id used for user creationprotected WorkflowTemplate createWorkflowTemplate(User owner, java.lang.String code, java.lang.String desc)
owner - user assigned to new templatecode - code of new templatedesc - description assigned to templateprotected WorkflowTemplate createWorkflowTemplate(User owner, java.lang.String code, java.lang.String desc, java.lang.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, java.lang.String code, EnumerationValue actionType, WorkflowTemplate workflow)
user - user assigned to templatecode - code of templateworkflow - workflow assigned to action templateprotected AutomatedWorkflowActionTemplate createAutomatedWorkflowActionTemplate(User user, java.lang.String code, EnumerationValue actionType, WorkflowTemplate workflow, java.lang.Class jobClass)
user - user assigned to templatecode - code of templateworkflow - workflow assigned to action templateprotected WorkflowDecisionTemplate createWorkflowDecisionTemplate(java.lang.String code, WorkflowActionTemplate actionTemplate)
code - code of templateactionTemplate - action template assigned to decision templateprotected void createWorkflowActionTemplateLinkTemplateRelation(WorkflowDecisionTemplate decisionTemplate, WorkflowActionTemplate toAction, java.lang.Boolean hasAndConnection)
decisionTemplate - toAction - hasAndConnection - protected WorkflowAction getAction(java.lang.String code)
code - code of needed actionprotected WorkflowDecision getDecision(java.lang.String code, WorkflowAction action)
code - code of needed decisionprotected WorkflowActionTemplate getActionTemplate(java.lang.String code)
code - code of needed actionCopyright © 2018 SAP SE. All Rights Reserved.