[JBoss jBPM] - Jbpm webapp as a portlet
by Ming Lee
Dear all
I am a newer to jpbm and portal.
I want to creat a jpbm process with task approve/reject,etc,and deplay this as a portlet , so that when a user log into portal , he can see his tasklist on the portlet. how to do this? can anyone give some advice?
I know that the task assignment relate with the jbpm table in jbpm database, but i checked there are also tables in the portal database with jbpm_xxx, like jbpm_id_user,jbpm_id_group,jbpm_id_membership, etc. though i can cofign my jbpm webapp using the portal database, but when a user login portal , it 's just a user of jbp_users table, how can he get his tasklist?
Apology for my poor English. hope you understand what i mean
Thanks in advance!
Ming Lee
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178248#4178248
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178248
17 years, 6 months
[JBoss jBPM] - Re: problems using jbpm 3.1 with jboss 4.0.0
by rishikesh.dagwal
Hi All,
I am getting the same problem with HttpClient 3.1 and fileupload 1.0. I have also tried fileupload 1.2.1. But I am getting the same message as
"the request was rejected because no multipart boundary was found"
Servlet is running on Tomcat 4.1 and I have Standalone java application as client.
I am writing some code for understanding
At client side [HttpClient 3.1]
===============================================
final String CONTENT_TYPE = "Content-type";
| final String MULTI_PART_FORM = "multipart/form-data";
|
| File file = new File( "c:\\sample.txt);
| HttpClient httpClient = new HttpClient();
| PostMethod postMethod = new PostMethod( url );
| postMethod.setRequestHeader( CONTENT_TYPE, MULTI_PART_FORM );
| Part[] parts = { new FilePart( file.getName(), file ) };
| postMethod.setRequestEntity( new MultipartRequestEntity( parts,
| postMethod.getParams() ) );
|
| HttpClientParams params = new HttpClientParams();
| httpClient.getHttpConnectionManager().getParams().setConnectionTimeout( 10000 );
| httpClient.setParams( params );
| httpClient.executeMethod( postMethod );
===============================================
At Server Side[Tomcat + fileupload 1.0]
===============================================
File file = new File( "D:\\UploadedFiles\\sample.txt" );
| DiskFileUpload diskFileUpload = new DiskFileUpload();
| List fileItems = diskFileUpload.parseRequest( request );
| diskFileUpload.setSizeMax( -1 ); // No limit on upload.
| Iterator iterator = fileItems.iterator();
| while( iterator.hasNext() ) {
| FileItem fileItem = ( FileItem )iterator.next();
| if( ! fileItem.isFormField() ) {
| fileItem.write( file );
| }
| }
===============================================
At Server Side[Tomcat + fileupload 1.2.1]
===============================================
File file = new File( "D:\\UploadedFiles\\sample.txt" );
| DiskFileItemFactory factory = new DiskFileItemFactory();
| ServletFileUpload servletFileUpload = new ServletFileUpload( factory );
| List fileItems = servletFileUpload.parseRequest( request );
| servletFileUpload.setSizeMax( -1 ); // No limit on upload.
| Iterator iterator = fileItems.iterator();
| while( iterator.hasNext() ) {
| FileItem fileItem = ( FileItem )iterator.next();
| if( ! fileItem.isFormField() ) {
| fileItem.write( file );
| }
| }
===============================================
If I dont use fileupload api and uses inputstrem of request to save file to disk then I get xml file that has additional text. Both code and file contents are shown below.
Code without fileupload API
===============================================
File file = new File( "D:\\UploadedFiles\\sample.txt" );
| InputStream inputStream = request.getInputStream();
| BufferedInputStream bufferedInputStream = new BufferedInputStream( inputStream );
| byte abyte0[] = new byte[ 4096 ];
| int i;
| FileOutputStream fileOutputStream = new FileOutputStream( file );
|
| while ( ( i = bufferedInputStream.read( abyte0, 0, 4096 ) ) != -1 ) {
| fileOutputStream.write( abyte0, 0, i );
| }
|
| bufferedInputStream.close();
| fileOutputStream.close();
===============================================
Original file
===============================================
0001
| BINARY
| FALSE
| 0002
| BINARY
| FALSE
===============================================
File after upload
===============================================
--modMHyNHWzdAQArk5xE5VmXXJAs-dx_A9Au
| Content-Disposition: form-data; name="file.xml"; filename="file.xml"
| Content-Type: application/octet-stream; charset=ISO-8859-1
| Content-Transfer-Encoding: binary
|
| 0001
| BINARY
| FALSE
| 0002
| BINARY
| FALSE
|
| --modMHyNHWzdAQArk5xE5VmXXJAs-dx_A9Au--
===============================================
any idea why this happening?
Thanks in Advance!
Regards,
Rishikesh Dagwal,
Senior Software Engineer,
Geometric Limited, Pune[India]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178239#4178239
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178239
17 years, 6 months
[JBoss jBPM] - Dynamic Node query
by pk_barua
Hi,
I have never worked with jBPM (or for that matter any WF tool) but I am currently evaluating jBPM (and Alfresco) for a solution for a client.
One of the specific requirement that we have is of dynamic workflows. What I mean by dynamic WFs is that the initiator may decide the users who will approve a document before sumbitting the same to the final authority. Something like:
Initiator -> Dynamic Node -> Final Node -> end
I also had a look at Documentum WF capabilities and it can "fill in" any number of sequential user in the "Dynamic Node" at the time of instantiating the WF. Is such a WF template possible in jBPM or is this something which is not really a standard WF requirement? Any thoughts in this regard will be of great help.
thanks,
Raj
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178205#4178205
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178205
17 years, 6 months