AnsweredAssumed Answered

Problem with import org.activiti.ProcessService

Question asked by zib on Jun 7, 2011
Latest reply on Feb 25, 2014 by jbarrez
Hello everyone,

My team and I would like to start a process instance by using the REST Api.

If we are getting the ProcessID manually, we can start a process instance by calling: 

ProcessEngines.getProcessEngine("default").getRuntimeService().startProcessInstanceById("ProcessX:1:118");
But now we would like to get the process definitions as well inside the program.

Therefore we are using the the following call, described in the Activiti User Guide.
ProcessEngines.getProcessEngine("default").getProcessService().createProcessDefinitionQuery().listPage()
Java does not know the call getProcessService().
We have imported all files from /activiti/setup/files/dependencies/lib
The import org.activiti.ProcessService cannot be resolved.

Thanks for helping
Zib

Outcomes