AnsweredAssumed Answered

How to code and start a Process

Question asked by zlatan316 on Jul 28, 2014
Latest reply on Aug 6, 2014 by frederikheremans1

I am trying to write some code which can start a particular process and make it appear under My Instances. Currently I have some code which can iterate through a list of names and allow the process to load a CallActivity which has its own underlying process. However each of these do not appear in My Instances. Below is my code:

   public void execute(DelegateExecution execution) {

      ArrayList<String> clientList = (ArrayList<String>)execution.getVariable("clientList");
      execution.setVariable("clientString", clientList.get(0));
      System.out.println("Setting the Client: " + clientList.get(0));
      String currentClientName = clientList.get(0);
      if(clientList.isEmpty()) {
         execution.setVariable("moreClientsToProcess", false);
         System.out.println("Client List is now empty");
      execution.setVariable("clientList", clientList);

And below is a link to my Activiti Flow:

Does anybody know how I can get the processes to appear in My Instances?

With Regards