How to publish workflow to publish instance ?

Avatar

Avatar
Validate 1
Level 1
raunaks49800538
Level 1

Likes

0 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
raunaks49800538
Level 1

Likes

0 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
raunaks49800538
Level 1

29-11-2018

Hi,
I have created new workflow in author instance. It is working as per my expectations at author environment. 

Now I need to push this to publish instance.

What are the steps I need to follow?

Thanks,

Replies

Avatar

Avatar
Give Back 5
Employee
rmahendra
Employee

Likes

26 likes

Total Posts

39 posts

Correct reply

14 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Employee
rmahendra
Employee

Likes

26 likes

Total Posts

39 posts

Correct reply

14 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
rmahendra
Employee

29-11-2018

We normally have the workflows as part of the code so that they can be deployed to all the environments. If it's a one time thing, you can package the workflow from the author and deploy it to publish or just build and replicate the package to publish. If you are on AEM 6.4, workflows are stored in /conf and /var. Prior to 6.4, they were in /etc.

Avatar

Avatar
Level 1
HaroldPutman
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
HaroldPutman
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
HaroldPutman
Level 1

22-07-2019

How do you reliably deploy workflows from code? I have put workflow model data in both places /conf/global/settings/workflow/models and /var/workflow/models. I deploy these to the target system(s) but I find these odd things sometimes:

  • New workflows don't show up in the Touch UI until I open them in Classic UI and save them.
  • If I update the workflow in code and then deploy, It runs the old workflow steps even though I see the new steps in both classic and touch UI editors. The old steps are run until I manually click save from Classic UI or click Sync from Touch UI editor.

What is the recommended process for deploying new or updated workflows?

Should the jcr:isCheckedOut="{Boolean}false" be in the XML file that I deploy /var/workflow/models/my-model-workflow/.content.xml ?

Do we need to add a "compile" step to our deployment process, to make the updated workflow models usable?

I feel like I must be doing something wrong here, but I can find no documentation on how to deploy workflow models from codebase.

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

22-07-2019

What is the reason that you need to deploy workflows to publish instances? Not any pages or assets, but the workflow (models)? What is the reason that you need to run workflows there?

(It is very unusual.)

Jörg

Avatar

Avatar
Level 1
HaroldPutman
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
HaroldPutman
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
HaroldPutman
Level 1

24-07-2019

Hi Jörg,

No idea about why the original poster needs workflows on publish instance.

I was tacking my question on here in response to rmahendra's statement "We normally have the workflows as part of the code".

Maybe I should open a new discussion?

Harold

Avatar

Avatar
Validate 25
MVP
Himanshu_Singhal
MVP

Likes

65 likes

Total Posts

206 posts

Correct reply

23 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 25
MVP
Himanshu_Singhal
MVP

Likes

65 likes

Total Posts

206 posts

Correct reply

23 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give Back 5
Give Back 3
View profile
Himanshu_Singhal
MVP

24-07-2019

Hi Harold,

There's no specific deployment process for workflow. It works same with as normal deployment process. Add it as part of code base. Make sure filters are set correctly and both /conf & /var part is included.

I've used the same and didn't face any issue.