Expand my Community achievements bar.

SOLVED

Work flow dropdown in Launcher dialog

Avatar

Community Advisor

Hi All,

When i am going through the launchers in AEM i saw dialog design under 

/libs/cq/workflow/widgets/source/widget/LauncherPanel.js path

i am not getting how the values in the dropdown workflows are getting from this Json

http://localhost:4502/libs/cq/workflow/content/console/workflows.json

When i hit that json i am able to see the workflows listed but i am unable to check where exactly the code ?

Thanks,

Mani Kumar

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi -

If you go to http://localhost:4502/system/console/servletresolver and put in your URL you will see that it comes from a servlet com.adobe.granite.workflow.console.servlet.WorkflowListServlet so it would not be easy to extend this with a JSP.

You might be able to define a jsp or servlet with a resource type of "cq/workflow/components/workflows" and return some json.

What are you trying to accomplish?

Will

View solution in original post

4 Replies

Avatar

Level 10

I am unclear what you are trying to do. WHat do you mean when you say "When i hit that JSON"? 

Usnig Workflow launcher for its intended purposes does not require clicking on JSON. 

Workflow launcher lets you automatically invoke a workflow based on conditions.
That is, a change to AEM JCR content. For example, when a page is modified. In this example, the workflow launcher is configured to invoke a workflow when content under /content/geometrixx is modified. The result is the AEMExperts workflow automatically publishes the page.
 

You can achieve the behaviour of a workflow launcher also by using code. But in many cases, it makes sense to provide functionality as workflow steps, because the flexibility to reconfigure individual steps is much higher. You don’t need to change any code or configuration to reconfigure a workflow, disable a certain workflow step and disable the workflow completely.

To configure workflow launcher, perform these tasks:

1. Go to workflow console at http://localhost:4502/libs/cq/workflow/content/console.html.
2. Click the Launcher tab.
3. Click the Add button at the top left of the page.
4, Add the following information:

  • Event Type: modified
  • Node Type: nt:unstructured
  • Path: /content/Geometrixx
  • Workflow: AEMExperts
  • Description: Activates Geometrixx pages
  • Activate: leaved enabled
  • Exclude List: Leave empty
  • Run Mode(s): Author

5. Click OK.

Avatar

Community Advisor

smacdonald2008 wrote...

I am unclear what you are trying to do. WHat do you mean when you say "When i hit that JSON"? 

Usnig Workflow launcher for its intended purposes does not require clicking on JSON. 

Workflow launcher lets you automatically invoke a workflow based on conditions.
That is, a change to AEM JCR content. For example, when a page is modified. In this example, the workflow launcher is configured to invoke a workflow when content under /content/geometrixx is modified. The result is the AEMExperts workflow automatically publishes the page.
 

You can achieve the behaviour of a workflow launcher also by using code. But in many cases, it makes sense to provide functionality as workflow steps, because the flexibility to reconfigure individual steps is much higher. You don’t need to change any code or configuration to reconfigure a workflow, disable a certain workflow step and disable the workflow completely.

To configure workflow launcher, perform these tasks:

1. Go to workflow console at http://localhost:4502/libs/cq/workflow/content/console.html.
2. Click the Launcher tab.
3. Click the Add button at the top left of the page.
4, Add the following information:

  • Event Type: modified
  • Node Type: nt:unstructured
  • Path: /content/Geometrixx
  • Workflow: AEMExperts
  • Description: Activates Geometrixx pages
  • Activate: leaved enabled
  • Exclude List: Leave empty
  • Run Mode(s): Author

5. Click OK.

 

Hi ,

I am aware of the workflows but my question is how can we customize those launcher configurations which are coming from launchpanel.js where exactly those drop down values are populating from in dialog.

 

Thanks

Mani Kumar K

Avatar

Level 10

I will pass this to the Eng team to see their thoughts. 

Avatar

Correct answer by
Employee

Hi -

If you go to http://localhost:4502/system/console/servletresolver and put in your URL you will see that it comes from a servlet com.adobe.granite.workflow.console.servlet.WorkflowListServlet so it would not be easy to extend this with a JSP.

You might be able to define a jsp or servlet with a resource type of "cq/workflow/components/workflows" and return some json.

What are you trying to accomplish?

Will