Update results customize
i need to customize what is displayed after an update process...
like, after updating the attributes, the user is displayed with a table each for each resource attribute changes.
i need to consolidate all these and throw back only the required attribute changes to user...
i need to ghide some attributes and have some meaningful message, rather than "lighthouse" and "uid=abcdef, ou=testou, o=test,c=com" etc displayed.
i could suprress the flow diagram.
Now i need to suppress the existing results and have custom tables with results.
Am not worried about old values, but if possible just display the new values.
[658 byte] By [
nsankar1da] at [2007-11-27 4:02:41]

# 1
Hi,
when all the relevant steps of your update user workflow have executed the builtin variable WF_CASE_RESULT contains a WavesetResult.
This WavesetResult has a named ResultItem called "report". Thats where the table with the attribute changes and the applet come from. Update a user and go to the debug pages to do a list all TaskInstance. Find the update you did and look at the xml. You will find a serialzed WF_CASE_RESULT in there.
You could manipulate the WF_CASE_RESULT before the workflow finishes or build your own new one using the API.
Regards,
Patrick
# 4
Hi,
Form that is display after select Accounts form dynamic generated by class
"com.waveset.ui.web.common.ResultsPage" so i don't think it can change.
You can use form.setPreformattedHTML("<b>Shant Test</b>"); in account/resourceReprovisionResults.jsp so it will only display shant Test on the page.
Thanx
Shant
# 6
I Am a bit new to all these...
Can anyone please explain a bit more for me.
I am using the default workflows with just the end user form changed.
Where do i make changes to reflect in WF_CASE_RESULT ?
Or is there any alternative, to disable all the generated HTML and call a form in the page and show a table with the field values from the Select Accounts Form or use the same select account form with no default buttons like save return to edit etc.
Thanks
Message was edited by: nsankar1d
Message was edited by:
nsankar1d
# 7
Hi,
if you want to completely whipe the output or want the output to be a static message use form.setPreformattedHTML() as Shank said.
If you want to get rid of some output elements and changes than you will have to build your own create user and update user workflows and enable those in the form and process mappings. You could start by using the OOTB workflows by clowning them.
Rename the end activity to reportCleanup. Make a new activity and call it end. Make a transition from reportCleanup to end.
Take a look at a TaskInstance(one from an update or create - they ootb go away after a hour so you might have to create one by changing a user) from the debug pages. There you can see the a technical description of that the jsp will render in the end. Seeing that structure it is straight forward use of the API to make changes to that in your new reportCleanup activity.
You keep on talking about forms. What you see in the end is not a form it is a report. The bean in the jsp may be called form but there is no xml form involved here. You can not achieve your goal by changing any form. The only way is workflow or jsp changes.
Regards,
Patrick