Workflows on AEM 6.4

Avatar

Avatar
Validate 1
Level 1
anoopvc1
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
anoopvc1
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile
anoopvc1
Level 1

26-11-2018

I have the below questions related workflows on AEM 6.4

1. If Im having workflow models as part of the code, should I have the model code both in '/conf and /var(runtime model) locations in my codebase.

2. If Im triggering a workflow programatically, which location is to be used to get the modelId in order to get the workflow that is to be triggered

Replies

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

27-11-2018

Hi,

It should be /var/ to trigger workflow progamatically.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

27-11-2018

We have  this article here - Adobe Experience Manager Help | Invoking an Adobe Experience Manager Custom 6.4 Workflow from a web ...

See the code in the Servlet in this article.

Avatar

Avatar
Validate 1
Level 1
anoopvc1
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
anoopvc1
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile
anoopvc1
Level 1

27-11-2018

Thanks smacdonald2008​, arun,

That answers my second question.

Any inputs on my first query?

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

27-11-2018

here you go

Previous location/etc/workflow/models
New location(s)

/libs/settings/workflow/models

/conf/global/settings/workflow/models

/var/workflow/models

find more details at Adobe Experience Manager Help | Common Repository Restructuring in AEM 6.4

Avatar

Avatar
Validate 1
Level 1
anoopvc1
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
anoopvc1
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile
anoopvc1
Level 1

06-05-2019

During the course of our project, we found that the answer to the first query would be a 'yes'

The workflow model code in both the /conf & /var locations should be a part of the project codebase.

Avatar

Avatar
Establish
Level 2
Andras_Fejer
Level 2

Like

1 like

Total Posts

22 posts

Correct reply

3 solutions
Top badges earned
Establish
Give Back
Validate 1
Boost 1
Applaud 5
View profile

Avatar
Establish
Level 2
Andras_Fejer
Level 2

Like

1 like

Total Posts

22 posts

Correct reply

3 solutions
Top badges earned
Establish
Give Back
Validate 1
Boost 1
Applaud 5
View profile
Andras_Fejer
Level 2

30-07-2019

Hello,

I also encountered this issue in AEM 6.5. The official documentation is not very helpful when talking about how to get your custom workflow into the system.

Adobe Experience Manager Help | Common Repository Restructuring in AEM 6.4

From a UX point of view it's not good that you have to open a default workflow and change the URL in the browser's address to your custom model.

Also I was not able to find that "sync button" mentioned at the 3. point when I have a workflow model open in the editor.

The 4. point kind of points at duplicating your custom workflow to "/config/settings/workflow/models/dam/my_workflow_model" and "/var/workflow/models/dam/my_workflow_model", but it's not explained why that's necessary.

Avatar

Avatar
Boost 5
Level 2
PriyankaBiswal
Level 2

Likes

8 likes

Total Posts

11 posts

Correct reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Boost 5
Level 2
PriyankaBiswal
Level 2

Likes

8 likes

Total Posts

11 posts

Correct reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
PriyankaBiswal
Level 2

30-07-2019

1. Yes, In both the locations , the one under  /conf serves as a template and the one under the /var is the real workflow instance which runs in the system.

2. for triggereing the workflow programatically, you need to mention the path under /var, Since the one under /var is the actual workflow running in the system.