Hi JP,
On 6/23/06, JP Singh <[EMAIL PROTECTED]> wrote:
> Hi John,
>
> Kindly refer to my previous posts.
Remember that it's tough for me to remember all the posts for
everyone. Without a bit of context, I get lost, but this mail is OK.
> I saw the input.py but could not understand , as I know nothing about
> Python. I am learning it.I want to know how to make these values of
> attribute in editWorkitem-body.jsp.
At first, a small basic question, why do you want to modify OpenWFE's
webclient ? You could write your own from scratch in whatever language
you want (perl, php, ruby, python, java,...)
But I understand that just modifying the webclient a bit is 'cheaper'
for you. (And it's easy for anyone with a bit of web development
skills to 'make it nicer').
> My requirement is given as:
>
> 1. The boolean values come true or false. I want to do something like this:
>
> if value=="true" value ="yes" if value=="false" value="no" some thing like
> it in some attributes. And in workitem the user do not see true or false but
> yes or no. I hope you will agree this is more user friendly.
It's around line 661 in input.py, just search for the string 'BooleanInput'.
> 2. If I give a field Name File Name in process-definition.xml and user
> enters it.
>
> How to fetch his value in editWorkitem-body.jsp ?
Something like
<%= ifwi.getAttributes().sget("filename") %>
Look at editWorkitem-body.jsp, the variable ifwi is of class
InFlowWorkItem, you can access its payload by doing
ifwi.getAttributes().
http://www.openwfe.org/javadoc/openwfe/org/engine/workitem/StringMapAttribute.html
> 3. If item 2 is little difficult , I guess, The file name ( in upload
> feature) can be directly fectched from input.py , isn't it? I hope 1 and 3
> are similar.
It's easier to get it from editWorkitem-body.jsp.
Input.py is a set of jython code, on top of the webclient. I used
jython as it was really fast for prototyping the 'automatic' form
generated for the workitems.
> I shall try to explore more once I am comfortale with Python.
It just reads like java sometimes.
There's a new [g]webclient under development at :
http://svn.sourceforge.net/viewcvs.cgi/openwfe/trunk/openwfe/gwebclient/
http://jmettraux.wordpress.com/2006/06/05/gwebclient/
But this takes some time, I'm busy on other projects.
Best regards,
John
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
OpenWFE - Open source WorkFlow Engine
OpenWFE-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openwfe-users