cancel
Showing results for 
Search instead for 
Did you mean: 

Deployment thro' API

rajendiran
Champ in-the-making
Champ in-the-making
Hi,

I tried to deploy and start a process instance thro' ProcessEngine and ProcessEngineConfiguration APIs. My java code doesn't throw any exception. But there is no deployment happening in the engine. I herewith attached my java code, bpmn file and activiti-cfg.file.

Can anyone please suggest to fix this issue?

Thanks and Regards,
Rajendiran R
13 REPLIES 13

k5
Champ in-the-making
Champ in-the-making
Why do you think it is not deployed?

It was deployed, has an id. You also sucessfully started a ProcessInstace.

rajendiran
Champ in-the-making
Champ in-the-making
Hi,

Thanks for the comment.

But I am not able to see the started process instance at "Activiti Explorer". Please suggest what went wrong!!

Regards,
Rajendiran R

rajendiran
Champ in-the-making
Champ in-the-making
Hi,

As an improvement, I am able to see some acripts running when "deploy()" method is being invoked (thro' my java code) in the console of eclipse. Though the activiti process engine is being created and the process instance is started thro' API, I do not see the deployed process definition under "Deployed Process Definitions" in Activiti Explorer.

I had attached the output which I got from the console of eclipse and the java code for your reference. Please help me to fix this issue.

Thanks and Regards,
Rajendiran R

k5
Champ in-the-making
Champ in-the-making
Your deployment script doesnt use the same database as your activiti explorer instance.

rajendiran
Champ in-the-making
Champ in-the-making
Hi,

Thanks for the comment. I have the same "db.properties" what Activiti Explorer uses in my classpath eclipse with the following details.

db=h2
jdbc.driver=org.h2.Driver
jdbc.url=jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000
jdbc.username=sa
jdbc.password=

Please let me know the where the problem is!!!

Regards,
Rajendiran R

k5
Champ in-the-making
Champ in-the-making
It is an in memory database, so it is bound to the current jvm instance.

rajendiran
Champ in-the-making
Champ in-the-making
Hi,

Can you please elaborate more on how to view the deployed instances in explorer? I am still stuck here. Please help me to fix this issue.

Thanks and Regards,
Rajendiran R

martin_grofcik
Confirmed Champ
Confirmed Champ

rajendiran
Champ in-the-making
Champ in-the-making
Dear Mr. Martin,

Thanks a lot for your suggestion.

I referred the link which you sent to me. It seems both activiti-rest and activiti-explorer need use the same data base. I ran the command "java -cp h2-1.4.180.jar org.h2.tools.Server -tcpPort 2962" thro' command prompt. I got the below response.

"TCP server running at tcp://10.199.102.134:2962 (only local connections)
PG server running at pg://10.199.102.134:5435 (only local connections)
Web Console server running at http://10.199.102.134:8082 (only local connections)"

I am getting the following exception in the web page with the link "http://10.199.102.134:8082/".

"H2 Console
Sorry, remote connections ('webAllowOthers') are disabled on this server."

Please suggest me how do I overcome this issue.

Thanks and Regards,
Rajendiran R