Class MockWorkflowExecutionContext

All Implemented Interfaces:
Serializable, Cloneable

public class MockWorkflowExecutionContext extends WorkflowExecutionContext
MockWorkflowExecutionContext is used for testing plugins. MockWorkflowExecutionContext sets up the file structure necessary for a project.

Please set Java Option: -Dflexagon.fd.install.root to the path where the folders will be created. The directories are created like this: flexagon.fd.install.root\ work \ 1 \ 1 \ temp,artifacts,etc. You can modify execution folders by changing Project Id and/or WorkflowExecutionId.

Add properties and input by calling various add methods.

Change Environment and Instance code by calling set methods if necessary.

It is recommended to set flexagon.fd.install.root to a unique path for each plugin developed.

See Also:
  • Constructor Details

    • MockWorkflowExecutionContext

      public MockWorkflowExecutionContext()
      Create a MockWorkflowExecutionContext with no inputs. Properties are added later.
    • MockWorkflowExecutionContext

      public MockWorkflowExecutionContext(Map<String,PropertyValue> pInputs)
      Create a MockWorkflowExecutionContext with no inputs. Properties are added later.
  • Method Details