cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with import org.activiti.ProcessService

zib
Champ in-the-making
Champ in-the-making
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
4 REPLIES 4

frederikherema1
Star Contributor
Star Contributor
Thanks for pointing that out, that's an old class in the userguide. I'll fix it on trunk…

It should be RepositoryService Smiley Wink

zib
Champ in-the-making
Champ in-the-making
Thank you for so quick answer!
It's working fine Smiley Wink

sahil
Champ in-the-making
Champ in-the-making
hello , i m using STS(spring tool suit) and making a maven project . i have added the activiti-engine dependencies into the pom file , can c the jar files in the mvn_repo but my sts still says
"The import org.activiti cannot be resolved"
can you please help!

jbarrez
Star Contributor
Star Contributor
Please post your xml that you use to add the dependency to activiti