VMware {code} Community
lurims123
Enthusiast
Enthusiast
Jump to solution

How to bring vCO workflow output to the vCO webview?

I have craeted some workflows and published them in the vCO webviews.  All workflows runs perfect in the published vCO Webview but they do not get the output that I get when I run the workflow inside the vCO.  How do I get the workflow output shown on the vCO webview website?

Tags (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
tschoergez
Leadership
Leadership
Jump to solution

Hi!

AFAIK there is no built-in functionality to print out workflow outputs directly in the webviews.

As a workaround: You can print out returns of an Action directly to a webview (there is an example in the Webview Developer guide, if I remember right; you have to call the action  via a Tapestry element)...

Example:

<div id="requestTableDiv">  
   <vmo jwcid="@Insert" value="ognl:page.executeAction('getExecutionsForCategory',{getAttribute('allWfls')})" raw="true"/>
   </div>

...in this case with "getExecutionsForCategory" as Webview-Attribute of Type Action, and "allWfls" as Webview-Attribute of type WorkflowCategory. The action itself wants a parameter of type WorkflowCategory...

In your case you would create an Action that now could get the workflow output from a WorkflowToken and present it to an HTML-String...

Regards,

Joerg

View solution in original post

Reply
0 Kudos
1 Reply
tschoergez
Leadership
Leadership
Jump to solution

Hi!

AFAIK there is no built-in functionality to print out workflow outputs directly in the webviews.

As a workaround: You can print out returns of an Action directly to a webview (there is an example in the Webview Developer guide, if I remember right; you have to call the action  via a Tapestry element)...

Example:

<div id="requestTableDiv">  
   <vmo jwcid="@Insert" value="ognl:page.executeAction('getExecutionsForCategory',{getAttribute('allWfls')})" raw="true"/>
   </div>

...in this case with "getExecutionsForCategory" as Webview-Attribute of Type Action, and "allWfls" as Webview-Attribute of type WorkflowCategory. The action itself wants a parameter of type WorkflowCategory...

In your case you would create an Action that now could get the workflow output from a WorkflowToken and present it to an HTML-String...

Regards,

Joerg

Reply
0 Kudos