AnsweredAssumed Answered

Just trying to deploy a process

Question asked by brianhks on Nov 12, 2011
Latest reply on Nov 5, 2014 by nutharsh

public String deploySomething(String resName, String xml)
         throws Exception
      DeploymentBuilder db = m_procEngine.getRepositoryService().createDeployment().name("Poo");
      db.addString(resName, xml);
      Deployment dep = db.deploy();
      String id = dep.getId();
      System.out.println("Proc Defs "+m_procEngine.getRepositoryService()
      return (id);

The count from the process definition query is always 0.

Here is what the xml parameter contains:

<definitions id="test_definitions"
   <process id="translation" name="Single phase translation">
      <startEvent id="start"/>
      <sequenceFlow id="flow1" sourceRef="start" targetRef="doTranslate" />
      <serviceTask id="doTranslate" name="Translate" activiti:class="TranslationTask"/>
      <sequenceFlow id="flow2" sourceRef="doTranslate" targetRef="end" />
      <endEvent id="end" />

Although it doesn't seem to matter what I pass to addString.  I can pass badly formed xml and it still seems to go through almost as if it isn't even trying to parse the data.

What am I doing wrong?