cancel
Showing results for 
Search instead for 
Did you mean: 

Display XML on web form during a Workflow

padukka
Champ in-the-making
Champ in-the-making
Hi! all,

I've created a web project with web forms. I'm passing XML data created via the web form in a workflow.I have a review step in the workflow. When I used the available workflow in alfresco, during the review step I could only review the XML file.I need to show the passed XML in a web form(or a html page is also ok), so that the reviewer can add a comment to the file in the workflow.
Hope some will reply

Janaka
1 REPLY 1

kvc
Champ in-the-making
Champ in-the-making
Janaka:


Yes, this is a known feature improvement.  We currently do not have support for a VIEW action to allow reviewers to bring up generated XML
in the standard Web Form view in a read-only mode.  This is the proper
thing to do for reviewers.

One option you have is to have a simple Freemarker template that generates a dummy web page for purposes of preview only.  Those
dummy pages should be generated in some special directory via your
output path like /temp/xmlpreview or something.   In your deployment
configuration, you will want to set this /temp/* directory as an exclude
so that these temp files you are generating solely for the purpose of
providing a view of XML for your reviewers do not make their way to
your run-time environment (not necessarily bad that they are there,
but best practice would not deploy assets are aren't needed to your
remote run-time servers).


Kevin