Class AEventRunnerTest
java.lang.Object
de.xima.fc.ms.test.workflow.AWorkflowEngineTest
de.xima.fc.ms.test.workflow.AEventRunnerTest
- All Implemented Interfaces:
DaoCrudMixin
Base class for tests that want to test the workflow event runner, such as tests for specific triggers.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields inherited from class AWorkflowEngineTest
client, dbConn, dbConnInvalid, ec, formData, formRecord, formVersion, group, groupOther, i18n, inbox, LOG, process, project, role, state, stateArchived, tempDir, testSystemInfo, user, userOther, version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddTo(WorkflowTask task, WorkflowNode parent, int index, WorkflowNode childToAdd) Adds the child to the given parent.protected voidaddTo(WorkflowTask task, WorkflowNode parent, WorkflowNode childToAdd) Adds the child to the given parent.protected voidaddToRootSequence(WorkflowTask task, WorkflowNode... nodes) Adds the given node the root node, i.e. the main sequence of actions.protected voidaddTriggers(WorkflowTrigger... triggers) protected voidassertContainsTriggers(WorkflowTrigger... triggers) protected static voidassertCounterDoesNotChange(AtomicInteger counter, int expectedInitial, int seconds) protected static voidassertCounterReaches(AtomicInteger counter, int target, int seconds) protected static voidassertCounterReachesOrHasReached(AtomicInteger counter, int target, int seconds) protected static voidassertCounterReachesOrHasReachedAtLeast(AtomicInteger counter, int target, int seconds) protected static voidassertDidFire(IEventExecutionResult result, WorkflowTrigger trigger) Asserts that the trigger did fire, i.e. that the associated processing chain was executed.protected static voidassertErrorData(IEventExecutionResult result, WorkflowNode node, Object expectedData) protected static voidassertErrorData(IEventExecutionResult result, WorkflowNode node, Object expectedData, int... indices) protected static voidassertErrorMessage(IEventExecutionResult result, WorkflowNode node, String expectedMessage) protected static voidassertErrorMessage(IEventExecutionResult result, WorkflowNode node, String expectedMessage, int... indices) protected static voidassertErrorType(IEventExecutionResult result, WorkflowNode node, String expectedType) protected static voidassertErrorType(IEventExecutionResult result, WorkflowNode node, String expectedType, int... indices) protected static voidassertExecutionFinishedOrder(IEventExecutionResult result, WorkflowNode... nodes) Asserts that node executions finished in the given order.protected static voidassertExecutionFinishedOrderPartial(IEventExecutionResult result, WorkflowNode... nodes) Asserts that node executions finished in the given order.protected static voidassertExecutionStartedOrder(IEventExecutionResult result, WorkflowNode... nodes) Asserts that node executions started in the given order.protected static voidassertExecutionStartedOrderPartial(IEventExecutionResult result, WorkflowNode... nodes) Asserts that node executions started in the given order.protected static ITaskExecutionErrorResultassertFailure(IEventExecutionResult result) protected static NodeThrewExceptionassertFailure(IEventExecutionResult result, WorkflowNode node) protected static NodeThrewExceptionassertFailure(IEventExecutionResult result, WorkflowNode node, int... indices) protected voidassertFormRecordIsInState(Vorgang formRecord, WorkflowState state) protected voidprotected IEventExecutionResultassertInvokesTriggers(IFormRecordProvidingEvent event, WorkflowTrigger... triggers) Asserts the given event invokes the given triggers, and only the given triggers; in the given order.protected static voidassertNodeCompletedNormally(IEventExecutionResult result, WorkflowNode node, int... indices) protected static IWorkflowNodeResultassertNodeCompletionType(ENodeCompletionType expected, IEventExecutionResult result, WorkflowNode node, int... indices) protected static voidassertNodeExecutionCount(IEventExecutionResult result, WorkflowNode node, int expectedCount) protected static voidassertNodeReturned(IEventExecutionResult result, WorkflowNode node, int... indices) protected static voidassertNodeSuccessResultAtKeyEquals(Object expected, IEventExecutionResult result, WorkflowNode node, String key) protected static voidassertNodeSuccessResultAtKeyEquals(Object expected, IWorkflowNodeResult result, String key) protected static voidassertNodeSuccessResultEquals(Object expected, IEventExecutionResult result, WorkflowNode node) protected static voidassertNodeThrew(IEventExecutionResult result, WorkflowNode node, int... indices) protected static voidassertNodeTransferredControl(EStandardControlTransferType controlTransferType, IEventExecutionResult result, WorkflowNode node, int... indices) protected static voidassertNodeTransferredControl(String controlTransferType, IEventExecutionResult result, WorkflowNode node, int... indices) protected static voidassertServletResponseContentString(IEventExecutionResult result, String content) Asserts that the text content of the servlet response of the given event execution result equals the expected value.protected static ITaskExecutionSuccessResultassertSuccess(IEventExecutionResult result) protected static ISuccessResultDataassertSuccess(IEventExecutionResult result, WorkflowNode node) protected static ISuccessResultDataassertSuccess(IEventExecutionResult result, WorkflowNode node, int... indices) protected static voidassertWasExecuted(IEventExecutionResult result, WorkflowNode node) Asserts that the given node was executed.protected static voidassertWasExecutedNTimes(int expectedCount, IEventExecutionResult result, WorkflowNode node) Asserts that the given node was executed the given number of times.protected static voidassertWasExecutedNTimes(IEventExecutionResult result, int count, WorkflowNode node) Deprecated.protected static voidassertWasNotExecuted(IEventExecutionResult result, WorkflowNode node) Asserts that the given node was not executed.protected RunnablecreateAwaitTriggerInvokation(Duration waitTime, WorkflowTrigger trigger, int count) protected WorkflowNodecreateCountExecutionNode(AtomicInteger counter) protected WorkflowNodecreateRecordNameNode(String name, Collection<String> names) Creates a node that, upon execution, adds the name of the executed node to the given collection.protected IFormRecordProvidingEventprotected FormSubmissionEventDataBuilderprotected static Stringprotected static StringgetNodeErrorMessage(IEventExecutionResult result, WorkflowNode node) protected static ObjectgetNodeErrorResultAtPath(NodeThrewException result, String path) protected static <T> TgetNodeErrorResultAtPath(NodeThrewException result, String path, Class<T> type) protected static ObjectgetNodeErrorResultAtPath(IEventExecutionResult result, WorkflowNode node, String path) protected static <T> TgetNodeErrorResultAtPath(IEventExecutionResult result, WorkflowNode node, String path, Class<T> type) protected static <T> TgetNodeErrorResultAtPath(Object errorResult, String path, Class<T> type) protected static ObjectgetNodeErrorResultValue(NodeThrewException nodeThrewException) protected static ObjectgetNodeErrorResultValue(IEventExecutionResult result, WorkflowNode node) protected static Stringprotected static StringgetNodeErrorType(IEventExecutionResult result, WorkflowNode node) protected static intgetNodeExecutionCount(IEventExecutionResult result, WorkflowNode node) protected static IWorkflowFilegetNodeFileAtDefaultGroup(IEventExecutionResult result, WorkflowNode node) protected static IWorkflowFilegetNodeFileAtDefaultGroup(IWorkflowNodeResult nodeResult) protected static IWorkflowFilegetNodeFileAtGroup(IEventExecutionResult result, WorkflowNode node, String group) protected static IWorkflowFilegetNodeFileAtGroup(IWorkflowNodeResult nodeResult, String group) protected static Map<String, List<IWorkflowFile>> getNodeFiles(IEventExecutionResult result, WorkflowNode node) protected static Map<String, List<IWorkflowFile>> getNodeFiles(IWorkflowNodeResult nodeResult) protected static List<IWorkflowFile> getNodeFilesAtDefaultGroup(IEventExecutionResult result, WorkflowNode node) protected static List<IWorkflowFile> getNodeFilesAtDefaultGroup(IWorkflowNodeResult nodeResult) protected static List<IWorkflowFile> getNodeFilesAtGroup(IEventExecutionResult result, WorkflowNode node, String group) protected static List<IWorkflowFile> getNodeFilesAtGroup(IWorkflowNodeResult nodeResult, String group) protected static IWorkflowFileValuegetNodeFileValue(IEventExecutionResult result, WorkflowNode node) protected static IWorkflowFileValuegetNodeFileValue(IWorkflowNodeResult nodeResult) protected static IWorkflowNodeResultgetNodeResult(IEventExecutionResult result, WorkflowNode node) protected static IWorkflowNodeResultgetNodeResult(IEventExecutionResult result, WorkflowNode node, int... indices) protected static List<IWorkflowNodeResult> getNodeResults(IEventExecutionResult result, WorkflowNode node) protected static NodeSoftErrorExceptiongetNodeSoftError(IEventExecutionResult result, WorkflowNode node) protected static NodeSoftErrorExceptiongetNodeSoftError(IWorkflowNodeResult nodeResult) protected static StringgetNodeSoftErrorMessage(IEventExecutionResult result, WorkflowNode node) protected static StringgetNodeSoftErrorMessage(IWorkflowNodeResult nodeResult) getNodeSoftErrorMessages(IEventExecutionResult result, WorkflowNode node) getNodeSoftErrorMessages(IWorkflowNodeResult nodeResult) protected static ObjectgetNodeSoftErrorResultAtPath(IEventExecutionResult result, WorkflowNode node, String path) protected static <T> TgetNodeSoftErrorResultAtPath(IEventExecutionResult result, WorkflowNode node, String path, Class<T> type) protected static ObjectgetNodeSoftErrorResultAtPath(IWorkflowNodeResult nodeResult, String path) protected static <T> TgetNodeSoftErrorResultAtPath(IWorkflowNodeResult nodeResult, String path, Class<T> type) getNodeSoftErrorResultsAtPath(IEventExecutionResult result, WorkflowNode node, String path) protected static <T> List<T> getNodeSoftErrorResultsAtPath(IEventExecutionResult result, WorkflowNode node, String path, Class<T> type) getNodeSoftErrorResultsAtPath(IWorkflowNodeResult nodeResult, String path) protected static <T> List<T> getNodeSoftErrorResultsAtPath(IWorkflowNodeResult nodeResult, String path, Class<T> type) protected static ObjectgetNodeSoftErrorResultValue(IEventExecutionResult result, WorkflowNode node) protected static ObjectgetNodeSoftErrorResultValue(IWorkflowNodeResult nodeResult) getNodeSoftErrorResultValues(IEventExecutionResult result, WorkflowNode node) getNodeSoftErrorResultValues(IWorkflowNodeResult nodeResult) protected static List<NodeSoftErrorException> getNodeSoftErrors(IEventExecutionResult result, WorkflowNode node) protected static List<NodeSoftErrorException> getNodeSoftErrors(IWorkflowNodeResult nodeResult) protected static StringgetNodeSoftErrorType(IEventExecutionResult result, WorkflowNode node) protected static StringgetNodeSoftErrorType(IWorkflowNodeResult nodeResult) getNodeSoftErrorTypes(IEventExecutionResult result, WorkflowNode node) getNodeSoftErrorTypes(IWorkflowNodeResult nodeResult) protected static ObjectgetNodeSuccessResultAtKey(IEventExecutionResult result, WorkflowNode node, String key) protected static <T> TgetNodeSuccessResultAtKey(IEventExecutionResult result, WorkflowNode node, String key, Class<T> type) protected static ObjectgetNodeSuccessResultAtKey(IWorkflowNodeResult result, String key) protected static <T> TgetNodeSuccessResultAtKey(IWorkflowNodeResult result, String key, Class<T> type) protected static <T> TgetNodeSuccessResultAtKey(Object successResult, String key, Class<T> type) protected static ObjectgetNodeSuccessResultAtPath(IEventExecutionResult result, WorkflowNode node, String path) protected static <T> TgetNodeSuccessResultAtPath(IEventExecutionResult result, WorkflowNode node, String path, Class<T> type) protected static ObjectgetNodeSuccessResultAtPath(IWorkflowNodeResult result, String path) protected static <T> TgetNodeSuccessResultAtPath(IWorkflowNodeResult result, String path, Class<T> type) protected static <T> TgetNodeSuccessResultAtPath(Object successResult, String path, Class<T> type) protected static ISuccessResultDatagetNodeSuccessResultData(IEventExecutionResult result, WorkflowNode node) protected static ObjectgetNodeSuccessResultValue(IEventExecutionResult result, WorkflowNode node) protected static ObjectgetNodeSuccessResultValue(IWorkflowNodeResult nodeResult) protected static NodeThrewExceptiongetNodeThrewException(IEventExecutionResult result, WorkflowNode node) protected static NodeThrewExceptiongetNodeThrewException(IEventExecutionResult result, WorkflowNode node, int... indices) protected static WorkflowNodegetRootNode(WorkflowTrigger trigger) protected static IServletResponseGets the servlet response of the given event execution result.protected static StringGets the text content of the servlet response of the given event execution result.protected IWorkflowEventRunnerrunner()protected List<WorkflowTask> setTasks(int taskCount) protected voidsetTriggers(WorkflowTrigger... triggers) protected voidprotected voidsetXfAction(String xfAction) protected voidsetXfQualifier(String xfQualifier) startingWith(String prefix) protected IEventExecutionResultvalueFileItem(String fileName, String mimeType, long fileSizeBytes) valueMimeType(String mimeType) valueMimeType(javax.activation.MimeType mimeType) Methods inherited from class AWorkflowEngineTest
assertAttachmentAccessibleByEndUsers, assertAttachmentContentJsonObject, assertAttachmentContentString, assertAttachmentContentString, assertAttachmentContentZippedString, assertAttachmentCount, assertAttachmentFileName, assertAttachmentFileName, assertAttachmentsAccessibleByEndUsers, assertAttachmentsAccessibleByEndUsers, assertAttachmentsContentJsonObject, assertAttachmentsContentJsonObject, assertAttachmentsContentString, assertAttachmentsContentString, assertAttachmentsContentString, assertAttachmentsFileName, assertAttachmentsFileName, assertAttachmentsFileName, assertEntriesAreEqual, assertHasLogEntriesOfType, assertHasNoAttachments, assertHasSingleLogEntryOfType, assertNoFormRecordChats, binaryResource, cleanupAfterAll, cleanupAfterEach, createClientResource, createClientResource, createClientResource, createFormData, createFormDataAdapter, createFormDataAdapter, createFormRecordResource, createFormRecordResource, createFormRecordResource, createProjectResource, createProjectResource, createProjectResource, createProjectResource, createSleepNode, createTempDir, createTextFile, deleteTempDir, ec, formElement, getAttachmentContentData, getAttachmentContentJsonObject, getAttachmentContentString, getFormRecordAttachment, getFormRecordAttachment, getFormRecordAttachmentContentString, getFormRecordAttachments, getFormRecordAttachments, getFormRecordChat, getFormRecordChats, getProcessingProtcolEntriesByType, getSuccessValue, getSuccessValueAs, newDummyUserCreator, nodeKey, plainTextResource, plainTextResource, readBinaryFile, readBinaryFile, readFile, readFormRecord, registerQueryListener, reloadFormRecord, reloadProcess, reloadProject, runGenericAfterAllCleanupActions, runGenericAfterEachCleanupActions, saveAndReloadFormRecord, saveAndReloadProcess, saveAndReloadProject, setFormData, setupEntities, toJsonObject, updateClientLicense, updateFormDataWithPersistenceXml, updateFormVersionWithPersistJson, updateName, updateParams, updateParams, updateParams, uploadElement, waitUntilFormRecordLocked, waitUntilFormRecordLocked, waitUntilFormRecordLocked, waitUntilFormRecordLocked, waitUntilFormRecordUnlocked, waitUntilFormRecordUnlocked, waitUntilFormRecordUnlocked, waitUntilFormRecordUnlocked
-
Constructor Details
-
AEventRunnerTest
public AEventRunnerTest()
-
-
Method Details
-
addTo
Adds the child to the given parent.- Parameters:
task- Task to which to add the node.parent- Parent to which to add a child.index- Position where to add the child.childToAdd- Child to add to the parent.
-
addTo
Adds the child to the given parent.- Parameters:
task- Task to which to add the node.parent- Parent to which to add a child.childToAdd- Child to add to the parent.
-
addToRootSequence
Adds the given node the root node, i.e. the main sequence of actions.- Parameters:
task- Task to which to add the node.nodes- Nodes to add.
-
addTriggers
-
assertContainsTriggers
-
assertFormRecordIsInState
-
assertFormRecordIsInState
-
assertInvokesTriggers
protected IEventExecutionResult assertInvokesTriggers(IFormRecordProvidingEvent event, WorkflowTrigger... triggers) Asserts the given event invokes the given triggers, and only the given triggers; in the given order.- Parameters:
event- Event to fire.triggers- Triggers to check whether they are invoked.- Returns:
- The result of the workflow execution.
-
createAwaitTriggerInvokation
protected Runnable createAwaitTriggerInvokation(Duration waitTime, WorkflowTrigger trigger, int count) -
createCountExecutionNode
-
createRecordNameNode
protected WorkflowNode createRecordNameNode(String name, Collection<String> names) throws FastJsonException Creates a node that, upon execution, adds the name of the executed node to the given collection.- Parameters:
name- Initial name for the node.names- Collection to which to add the node's name.- Returns:
- A node that adds its name to the given collection when executed.
- Throws:
FastJsonException- When the data could not be serialized.
-
formSubmissionEvent
-
formSubmissionEventBuilder
-
runner
-
setTasks
-
setTriggers
-
setXfAction
-
setXfQualifier
-
setupProcess
protected void setupProcess()- Specified by:
setupProcessin classAWorkflowEngineTest
-
triggerEvent
-
assertCounterDoesNotChange
protected static void assertCounterDoesNotChange(AtomicInteger counter, int expectedInitial, int seconds) -
assertCounterReaches
-
assertCounterReachesOrHasReached
protected static void assertCounterReachesOrHasReached(AtomicInteger counter, int target, int seconds) -
assertCounterReachesOrHasReachedAtLeast
protected static void assertCounterReachesOrHasReachedAtLeast(AtomicInteger counter, int target, int seconds) -
assertDidFire
Asserts that the trigger did fire, i.e. that the associated processing chain was executed.- Parameters:
result- Event execution result.trigger- Trigger to check.
-
assertErrorData
protected static void assertErrorData(IEventExecutionResult result, WorkflowNode node, Object expectedData) -
assertErrorData
protected static void assertErrorData(IEventExecutionResult result, WorkflowNode node, Object expectedData, int... indices) -
assertErrorMessage
protected static void assertErrorMessage(IEventExecutionResult result, WorkflowNode node, String expectedMessage) -
assertErrorMessage
protected static void assertErrorMessage(IEventExecutionResult result, WorkflowNode node, String expectedMessage, int... indices) -
assertErrorType
protected static void assertErrorType(IEventExecutionResult result, WorkflowNode node, String expectedType) -
assertErrorType
protected static void assertErrorType(IEventExecutionResult result, WorkflowNode node, String expectedType, int... indices) -
assertExecutionFinishedOrder
protected static void assertExecutionFinishedOrder(IEventExecutionResult result, WorkflowNode... nodes) Asserts that node executions finished in the given order.- Parameters:
result- Result obtained from executing the workflow.nodes- Expected order in which the nodes should have started.
-
assertExecutionFinishedOrderPartial
protected static void assertExecutionFinishedOrderPartial(IEventExecutionResult result, WorkflowNode... nodes) Asserts that node executions finished in the given order. Only checks the relative order of the given expected nodes, does not check that no other nodes were executed in between the expected nodes.- Parameters:
result- Result obtained from executing the workflow.nodes- Expected order in which the nodes should have finished.
-
assertExecutionStartedOrder
protected static void assertExecutionStartedOrder(IEventExecutionResult result, WorkflowNode... nodes) Asserts that node executions started in the given order.- Parameters:
result- Result obtained from executing the workflow.nodes- Expected order in which the nodes should have started.
-
assertExecutionStartedOrderPartial
protected static void assertExecutionStartedOrderPartial(IEventExecutionResult result, WorkflowNode... nodes) Asserts that node executions started in the given order. Only checks the relative order of the given expected nodes, does not check that no other nodes were executed in between the expected nodes.- Parameters:
result- Result obtained from executing the workflow.nodes- Expected order in which the nodes should have started.
-
assertFailure
-
assertFailure
@CanIgnoreReturnValue protected static NodeThrewException assertFailure(IEventExecutionResult result, WorkflowNode node) -
assertFailure
protected static NodeThrewException assertFailure(IEventExecutionResult result, WorkflowNode node, int... indices) -
assertNodeCompletionType
@CanIgnoreReturnValue protected static IWorkflowNodeResult assertNodeCompletionType(ENodeCompletionType expected, IEventExecutionResult result, WorkflowNode node, int... indices) -
assertNodeReturned
protected static void assertNodeReturned(IEventExecutionResult result, WorkflowNode node, int... indices) -
assertNodeThrew
protected static void assertNodeThrew(IEventExecutionResult result, WorkflowNode node, int... indices) -
assertNodeCompletedNormally
protected static void assertNodeCompletedNormally(IEventExecutionResult result, WorkflowNode node, int... indices) -
assertNodeTransferredControl
protected static void assertNodeTransferredControl(String controlTransferType, IEventExecutionResult result, WorkflowNode node, int... indices) -
assertNodeTransferredControl
protected static void assertNodeTransferredControl(EStandardControlTransferType controlTransferType, IEventExecutionResult result, WorkflowNode node, int... indices) -
assertNodeExecutionCount
protected static void assertNodeExecutionCount(IEventExecutionResult result, WorkflowNode node, int expectedCount) -
assertNodeSuccessResultEquals
protected static void assertNodeSuccessResultEquals(Object expected, IEventExecutionResult result, WorkflowNode node) -
assertNodeSuccessResultAtKeyEquals
protected static void assertNodeSuccessResultAtKeyEquals(Object expected, IEventExecutionResult result, WorkflowNode node, String key) -
assertNodeSuccessResultAtKeyEquals
protected static void assertNodeSuccessResultAtKeyEquals(Object expected, IWorkflowNodeResult result, String key) -
assertServletResponseContentString
protected static void assertServletResponseContentString(IEventExecutionResult result, String content) throws UnsupportedEncodingException Asserts that the text content of the servlet response of the given event execution result equals the expected value. Uses the encoding of the servlet response to decode the binary content.- Parameters:
result- Event execution result.content- The expected content.- Throws:
UnsupportedEncodingException- When the servlet response contains an unsupported encoding.
-
assertSuccess
-
assertSuccess
-
assertSuccess
protected static ISuccessResultData assertSuccess(IEventExecutionResult result, WorkflowNode node, int... indices) -
assertWasExecuted
Asserts that the given node was executed.- Parameters:
result- Result obtained from executing the workflow.node- Node to check.
-
assertWasExecutedNTimes
@Deprecated protected static void assertWasExecutedNTimes(IEventExecutionResult result, int count, WorkflowNode node) Deprecated.Asserts that the given node was executed the given number of times.- Parameters:
result- Result obtained from executing the workflow.count- Number of expected executions.node- Node to check.
-
assertWasExecutedNTimes
protected static void assertWasExecutedNTimes(int expectedCount, IEventExecutionResult result, WorkflowNode node) Asserts that the given node was executed the given number of times.- Parameters:
expectedCount- Number of expected executions.result- Result obtained from executing the workflow.node- Node to check.
-
assertWasNotExecuted
Asserts that the given node was not executed.- Parameters:
result- Result obtained from executing the workflow.node- Node to check.
-
getNodeErrorMessage
-
getNodeErrorMessage
-
getNodeErrorResultAtPath
protected static Object getNodeErrorResultAtPath(IEventExecutionResult result, WorkflowNode node, String path) -
getNodeErrorResultAtPath
protected static <T> T getNodeErrorResultAtPath(IEventExecutionResult result, WorkflowNode node, String path, Class<T> type) -
getNodeErrorResultAtPath
-
getNodeErrorResultAtPath
protected static <T> T getNodeErrorResultAtPath(NodeThrewException result, String path, Class<T> type) -
getNodeErrorResultAtPath
-
getNodeErrorResultValue
-
getNodeErrorResultValue
-
getNodeErrorType
-
getNodeErrorType
-
getNodeExecutionCount
-
getNodeResult
-
getNodeFileValue
protected static IWorkflowFileValue getNodeFileValue(IEventExecutionResult result, WorkflowNode node) -
getNodeFileValue
-
getNodeFiles
protected static Map<String, List<IWorkflowFile>> getNodeFiles(IEventExecutionResult result, WorkflowNode node) -
getNodeFiles
-
getNodeFilesAtDefaultGroup
protected static List<IWorkflowFile> getNodeFilesAtDefaultGroup(IEventExecutionResult result, WorkflowNode node) -
getNodeFilesAtDefaultGroup
-
getNodeFileAtDefaultGroup
protected static IWorkflowFile getNodeFileAtDefaultGroup(IEventExecutionResult result, WorkflowNode node) -
getNodeFileAtDefaultGroup
-
getNodeFilesAtGroup
protected static List<IWorkflowFile> getNodeFilesAtGroup(IEventExecutionResult result, WorkflowNode node, String group) -
getNodeFilesAtGroup
protected static List<IWorkflowFile> getNodeFilesAtGroup(IWorkflowNodeResult nodeResult, String group) -
getNodeFileAtGroup
-
getNodeFileAtGroup
protected static IWorkflowFile getNodeFileAtGroup(IEventExecutionResult result, WorkflowNode node, String group) -
getNodeResult
protected static IWorkflowNodeResult getNodeResult(IEventExecutionResult result, WorkflowNode node, int... indices) -
getNodeResults
protected static List<IWorkflowNodeResult> getNodeResults(IEventExecutionResult result, WorkflowNode node) -
getNodeSoftError
protected static NodeSoftErrorException getNodeSoftError(IEventExecutionResult result, WorkflowNode node) -
getNodeSoftError
-
getNodeSoftErrorMessage
-
getNodeSoftErrorMessage
-
getNodeSoftErrorMessages
protected static List<String> getNodeSoftErrorMessages(IEventExecutionResult result, WorkflowNode node) -
getNodeSoftErrorMessages
-
getNodeSoftErrorResultAtPath
protected static Object getNodeSoftErrorResultAtPath(IEventExecutionResult result, WorkflowNode node, String path) -
getNodeSoftErrorResultAtPath
protected static <T> T getNodeSoftErrorResultAtPath(IEventExecutionResult result, WorkflowNode node, String path, Class<T> type) -
getNodeSoftErrorResultAtPath
-
getNodeSoftErrorResultAtPath
protected static <T> T getNodeSoftErrorResultAtPath(IWorkflowNodeResult nodeResult, String path, Class<T> type) -
getNodeSoftErrorResultValue
protected static Object getNodeSoftErrorResultValue(IEventExecutionResult result, WorkflowNode node) -
getNodeSoftErrorResultValue
-
getNodeSoftErrorResultValues
protected static List<Object> getNodeSoftErrorResultValues(IEventExecutionResult result, WorkflowNode node) -
getNodeSoftErrorResultValues
-
getNodeSoftErrorResultsAtPath
protected static List<Object> getNodeSoftErrorResultsAtPath(IEventExecutionResult result, WorkflowNode node, String path) -
getNodeSoftErrorResultsAtPath
protected static <T> List<T> getNodeSoftErrorResultsAtPath(IEventExecutionResult result, WorkflowNode node, String path, Class<T> type) -
getNodeSoftErrorResultsAtPath
protected static List<Object> getNodeSoftErrorResultsAtPath(IWorkflowNodeResult nodeResult, String path) -
getNodeSoftErrorResultsAtPath
protected static <T> List<T> getNodeSoftErrorResultsAtPath(IWorkflowNodeResult nodeResult, String path, Class<T> type) -
getNodeSoftErrorType
-
getNodeSoftErrorType
-
getNodeSoftErrorTypes
protected static List<String> getNodeSoftErrorTypes(IEventExecutionResult result, WorkflowNode node) -
getNodeSoftErrorTypes
-
getNodeSoftErrors
protected static List<NodeSoftErrorException> getNodeSoftErrors(IEventExecutionResult result, WorkflowNode node) -
getNodeSoftErrors
-
getNodeSuccessResultAtKey
protected static Object getNodeSuccessResultAtKey(IEventExecutionResult result, WorkflowNode node, String key) -
getNodeSuccessResultAtKey
protected static <T> T getNodeSuccessResultAtKey(IEventExecutionResult result, WorkflowNode node, String key, Class<T> type) -
getNodeSuccessResultAtKey
-
getNodeSuccessResultAtKey
protected static <T> T getNodeSuccessResultAtKey(IWorkflowNodeResult result, String key, Class<T> type) -
getNodeSuccessResultAtKey
-
getNodeSuccessResultAtPath
protected static Object getNodeSuccessResultAtPath(IEventExecutionResult result, WorkflowNode node, String path) -
getNodeSuccessResultAtPath
protected static <T> T getNodeSuccessResultAtPath(IEventExecutionResult result, WorkflowNode node, String path, Class<T> type) -
getNodeSuccessResultAtPath
-
getNodeSuccessResultAtPath
protected static <T> T getNodeSuccessResultAtPath(IWorkflowNodeResult result, String path, Class<T> type) -
getNodeSuccessResultAtPath
-
getNodeSuccessResultData
protected static ISuccessResultData getNodeSuccessResultData(IEventExecutionResult result, WorkflowNode node) -
getNodeSuccessResultValue
-
getNodeSuccessResultValue
-
getNodeThrewException
protected static NodeThrewException getNodeThrewException(IEventExecutionResult result, WorkflowNode node) -
getNodeThrewException
protected static NodeThrewException getNodeThrewException(IEventExecutionResult result, WorkflowNode node, int... indices) -
getRootNode
-
getServletResponse
Gets the servlet response of the given event execution result. Also asserts that a servlet response is present.- Parameters:
result- Event execution result.- Returns:
- The servlet response.
-
getServletResponseContentString
protected static String getServletResponseContentString(IEventExecutionResult result) throws UnsupportedEncodingException Gets the text content of the servlet response of the given event execution result. Uses the encoding of the servlet response to decode the binary content.- Parameters:
result- Event execution result.- Returns:
- The text content of the servlet response.
- Throws:
UnsupportedEncodingException- When the servlet response contains an unsupported encoding.
-
startingWith
-
valueAttachment
-
valueAttachment
-
valueFileItem
-
valueMimeType
-
valueMimeType
-
assertWasExecutedNTimes(int, IEventExecutionResult, WorkflowNode).