cancel
Showing results for 
Search instead for 
Did you mean: 

How to deploy a workflow in Activiti 7?

chsun
Confirmed Champ
Confirmed Champ

I want to deploy a BPMN workflow in an Activiti 7 cloud service. In an Activiti 6 server, I can do this by its REST API: 

POST repository/deployments
But in Activiti 7 I cannot find this API. Where can I find the deployment APIs? How can I deploy the workflow with or without the REST API? 
 
9 REPLIES 9

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

Hi Sanjay,

I read the article but did not find how to deploy the workflow by the REST API.

I saw how to deploy the engine and how to get the predefined process definitions by the REST API, but no workflow deployment. Did I miss anything?

And I saw the CI/CD demo video in the activiti.org and another Deep Dive Series. Both of them rebuild and redeploy the runtime engine every time they create a new workflow. That is not what I want.

Thanks,

Charles Sun

Widad_Dek
Champ on-the-rise
Champ on-the-rise

Hi chsun,

That's exactly what I need to do in Activiti 6, which is to deploy dynamically new XML workflows without redeploying the whole runtime engine could you please tell me how did you manage to do it? 

Thanks,

@Widad_Dek create a deployment with the pocess xml as input - https://www.activiti.org/userguide/#_create_a_new_deployment

Hope it helps.

Regards,
Abbas

Hi @abbask01 ,

Thanks for the respond, that's exactly what I've done from Spring Boot but I always get error 403 forbidden. So I really don't understand why is this operation not allowed, do you have any explanation about this ? 

Cordially,

Hi everyone, I resume this post.

@chsun do you resolve your problem?

chsun
Confirmed Champ
Confirmed Champ

No. I went back to Activiti 6 now.

I see. I am curious why the api was removed from activiti 7.

Best Regards,

abbask01
Star Collaborator
Star Collaborator

Hi @chsun 

I don't there's any rest api to deploy the model again, with activiti-7 you'll have to deploy it by restarting your server. but there are apis to connect with the runtime bundle, you can see the model deployed but you cannot modify it. source

Hope that helps.

Regards,
Abbas