AnsweredAssumed Answered

SignalBoundaryEvent is not working

Question asked by fg80 on Dec 10, 2014
Latest reply on Dec 12, 2014 by fg80
Hi All,

I have a problem testing the SignalBoundaryEvent in Java. I've created a very simpel Bpmn file with two script tasks and a signal boundary event on the first script task. In Java I initiate the process but I can't make the process go on to the second script task.

Please find attached the xml file of the process.

The deployment seems to be OK, the first Script Task is executed (Groovy "out.println("Scipt Task 1");") is shown.


mProcessEngine = ProcessEngineConfiguration
String ip = "";
String AutomationProcessId = "scriptProcess";
String fileName = "ScriptProcess.bpmn20.xml";

ProcessInstance processInstance = startProcessInstance( AutomationProcessId, fileName, ip);

public static ProcessInstance startProcessInstance( String processId, String processFile, String clientIp) {

      String deploymentId = deployProcessOnEngine(processFile);
      Map<String, Object> variableMap = initializeVarMap();
      variableMap.put("map_clientIp", clientIp);
       ProcessInstance processInstance = mProcessEngine.getRuntimeService().startProcessInstanceByKey( processId, variableMap);
       return processInstance;
private static String deployProcessOnEngine(String processFilePath){

      RepositoryService repositoryService = mProcessEngine.getRepositoryService();

      Deployment d = repositoryService.createDeployment()
          .addClasspathResource( processFilePath)
      return d.getId();
private static Map<String,Object> initializeVarMap() {
      Map<String, Object> variableMap = new HashMap<String, Object>();
      return variableMap;

I've tried the signal-ID, the signal-Name and the signal-ref…nothing works :(

Your help is highly appreciated :)