All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nitorcreations.nflow.engine.workflow.StateExecution Maven / Gradle / Ivy

There is a newer version: 3.3.0
Show newest version
package com.nitorcreations.nflow.engine.workflow;

import org.joda.time.DateTime;

public interface StateExecution {

  String getBusinessKey();

  String getRequestData();
   T getRequestData(Class type);

  int getRetries();
  boolean isFailure();

  String getVariable(String name);
   T getVariable(String name, Class type);
  String getVariable(String name, String defaultValue);
  void setVariable(String name, String value);
  void setVariable(String name, Object value);

  void setNextActivation(DateTime time);
  void setNextState(WorkflowState state);
  void setNextStateReason(String stateText);
  void setNextState(WorkflowState state, String stateText, DateTime time);
  void setFailure(boolean failure);
  void setSaveTrace(boolean saveTrace);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy