org.overlord.sramp.governance.workflow.brms
Class JbpmRestClient

java.lang.Object
  extended by org.overlord.sramp.governance.workflow.brms.JbpmRestClient

public class JbpmRestClient
extends Object


Constructor Summary
JbpmRestClient(org.apache.http.client.HttpClient httpclient, String jbpmUrl)
           
 
Method Summary
 void logon(String username, String password)
           
 void newProcessInstance(String processId)
          Creates a new jBPM5 process instance, given the processId.
 void newProcessInstanceAndCompleteFirstTask(String processId, Map<String,Object> params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbpmRestClient

public JbpmRestClient(org.apache.http.client.HttpClient httpclient,
                      String jbpmUrl)
Method Detail

logon

public void logon(String username,
                  String password)
           throws org.apache.http.client.ClientProtocolException,
                  IOException
Throws:
org.apache.http.client.ClientProtocolException
IOException

newProcessInstanceAndCompleteFirstTask

public void newProcessInstanceAndCompleteFirstTask(String processId,
                                                   Map<String,Object> params)
                                            throws IOException,
                                                   URISyntaxException,
                                                   WorkflowException
Throws:
IOException
URISyntaxException
WorkflowException

newProcessInstance

public void newProcessInstance(String processId)
                        throws URISyntaxException,
                               IOException
Creates a new jBPM5 process instance, given the processId.

Parameters:
processId -
Throws:
URISyntaxException
org.apache.http.client.ClientProtocolException
IOException


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.