public class XmlRpcWorkflowManagerClient extends Object
The XML RPC based workflow manager client.
Constructor and Description |
---|
XmlRpcWorkflowManagerClient(URL url)
Constructs a new XmlRpcWorkflowManagerClient with the given
url . |
public XmlRpcWorkflowManagerClient(URL url)
Constructs a new XmlRpcWorkflowManagerClient with the given
url
.
url
- The url pointer to the xml rpc workflow manager service.public boolean refreshRepository() throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public String executeDynamicWorkflow(List<String> taskIds, Metadata metadata) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public List getRegisteredEvents() throws org.apache.xmlrpc.XmlRpcException, IOException, RepositoryException
org.apache.xmlrpc.XmlRpcException
IOException
RepositoryException
public WorkflowInstancePage getFirstPage() throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public WorkflowInstancePage getNextPage(WorkflowInstancePage currentPage) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public WorkflowInstancePage getPrevPage(WorkflowInstancePage currentPage) throws Exception
Exception
public WorkflowInstancePage getLastPage() throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public WorkflowInstancePage paginateWorkflowInstances(int pageNum, String status) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public WorkflowInstancePage paginateWorkflowInstances(int pageNum) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public List getWorkflowsByEvent(String eventName) throws org.apache.xmlrpc.XmlRpcException, IOException, RepositoryException
org.apache.xmlrpc.XmlRpcException
IOException
RepositoryException
public Metadata getWorkflowInstanceMetadata(String wInstId) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public boolean setWorkflowInstanceCurrentTaskStartDateTime(String wInstId, String startDateTimeIsoStr) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public double getWorkflowCurrentTaskWallClockMinutes(String workflowInstId) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public double getWorkflowWallClockMinutes(String workflowInstId) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public boolean stopWorkflowInstance(String workflowInstId) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public boolean pauseWorkflowInstance(String workflowInstId) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public boolean resumeWorkflowInstance(String workflowInstId) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public boolean setWorkflowInstanceCurrentTaskEndDateTime(String wInstId, String endDateTimeIsoStr) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public boolean updateWorkflowInstanceStatus(String workflowInstId, String status) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public boolean updateWorkflowInstance(WorkflowInstance instance) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public boolean updateMetadataForWorkflow(String workflowInstId, Metadata metadata) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public boolean sendEvent(String eventName, Metadata metadata) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public boolean clearWorkflowInstances() throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public WorkflowTask getTaskById(String taskId) throws org.apache.xmlrpc.XmlRpcException, IOException, RepositoryException
org.apache.xmlrpc.XmlRpcException
IOException
RepositoryException
public WorkflowCondition getConditionById(String conditionId) throws org.apache.xmlrpc.XmlRpcException, IOException, RepositoryException
org.apache.xmlrpc.XmlRpcException
IOException
RepositoryException
public WorkflowInstance getWorkflowInstanceById(String wInstId) throws org.apache.xmlrpc.XmlRpcException, IOException, RepositoryException
org.apache.xmlrpc.XmlRpcException
IOException
RepositoryException
public Workflow getWorkflowById(String workflowId) throws org.apache.xmlrpc.XmlRpcException, IOException, RepositoryException
org.apache.xmlrpc.XmlRpcException
IOException
RepositoryException
public List getWorkflows() throws org.apache.xmlrpc.XmlRpcException, IOException, RepositoryException
org.apache.xmlrpc.XmlRpcException
IOException
RepositoryException
public int getNumWorkflowInstancesByStatus(String status) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public int getNumWorkflowInstances() throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public List getWorkflowInstancesByStatus(String status) throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public List getWorkflowInstances() throws org.apache.xmlrpc.XmlRpcException, IOException
org.apache.xmlrpc.XmlRpcException
IOException
public static void main(String[] args)
public URL getWorkflowManagerUrl()
public void setWorkflowManagerUrl(URL workflowManagerUrl)
workflowManagerUrl
- The workflowManagerUrl to set.Copyright © 1999–2017 Apache OODT. All rights reserved.