public class XmlRpcWorkflowManager extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_WEB_SERVER_PORT |
static String |
ENGINE_RUNNER_FACTORY_PROPERTY |
static String |
PROPERTIES_FILE_PROPERTY |
static String |
WORKFLOW_ENGINE_FACTORY_PROPERTY |
static String |
WORKFLOW_REPOSITORY_FACTORY_PROPERTY |
static String |
XML_RPC_HANDLER_NAME |
Constructor and Description |
---|
XmlRpcWorkflowManager() |
XmlRpcWorkflowManager(int port) |
public static final int DEFAULT_WEB_SERVER_PORT
public static final String XML_RPC_HANDLER_NAME
public static final String PROPERTIES_FILE_PROPERTY
public static final String WORKFLOW_ENGINE_FACTORY_PROPERTY
public static final String ENGINE_RUNNER_FACTORY_PROPERTY
public static final String WORKFLOW_REPOSITORY_FACTORY_PROPERTY
public XmlRpcWorkflowManager()
public XmlRpcWorkflowManager(int port)
public boolean shutdown()
public boolean refreshRepository()
public String executeDynamicWorkflow(Vector<String> taskIds, Hashtable metadata) throws RepositoryException, EngineException
RepositoryException
EngineException
public String executeDynamicWorkflowCore(Vector<String> taskIds, Map metadata) throws RepositoryException, EngineException
RepositoryException
EngineException
public List getRegisteredEvents() throws RepositoryException
RepositoryException
public Map getFirstPage()
public Map getLastPage()
public Map paginateWorkflowInstances(int pageNum, String status) throws InstanceRepositoryException
InstanceRepositoryException
public Map paginateWorkflowInstances(int pageNum) throws InstanceRepositoryException
InstanceRepositoryException
public List getWorkflowsByEvent(String eventName) throws RepositoryException
RepositoryException
public boolean handleEvent(String eventName, Hashtable metadata) throws RepositoryException, EngineException
RepositoryException
EngineException
public boolean handleEventCore(String eventName, Map metadata) throws RepositoryException, EngineException
RepositoryException
EngineException
public boolean stopWorkflowInstance(String workflowInstId)
public boolean pauseWorkflowInstance(String workflowInstId)
public boolean resumeWorkflowInstance(String workflowInstId)
public double getWorkflowWallClockMinutes(String workflowInstId)
public double getWorkflowCurrentTaskWallClockMinutes(String workflowInstId)
public int getNumWorkflowInstancesByStatus(String status) throws InstanceRepositoryException
InstanceRepositoryException
public int getNumWorkflowInstances() throws InstanceRepositoryException
InstanceRepositoryException
public List getWorkflowInstancesByStatus(String status) throws EngineException
EngineException
public List getWorkflowInstances() throws EngineException
EngineException
public boolean clearWorkflowInstances() throws InstanceRepositoryException
InstanceRepositoryException
public List getWorkflows() throws RepositoryException
RepositoryException
public Map getTaskById(String taskId) throws RepositoryException
RepositoryException
public Map getConditionById(String conditionId) throws RepositoryException
RepositoryException
public Map getWorkflowById(String workflowId) throws RepositoryException
RepositoryException
public boolean updateMetadataForWorkflow(String workflowInstId, Hashtable metadata)
public boolean updateWorkflowInstance(Hashtable workflowInst)
public boolean updateWorkflowInstanceCore(Map workflowInst)
public boolean setWorkflowInstanceCurrentTaskStartDateTime(String wInstId, String startDateTimeIsoStr)
public boolean setWorkflowInstanceCurrentTaskEndDateTime(String wInstId, String endDateTimeIsoStr)
public boolean updateWorkflowInstanceStatus(String workflowInstanceId, String status) throws InstanceRepositoryException
InstanceRepositoryException
public static void main(String[] args) throws IOException
IOException
public static void loadProperties() throws IOException
IOException
Copyright © 1999–2017 Apache OODT. All rights reserved.