[jboss-user] [JBoss jBPM] - Re: JBPM JSF Integrartion

ambika_devi do-not-reply at jboss.com
Mon Jun 18 06:09:10 EDT 2007


Hi roccolocko 

Suggest and help me in the code which u have given to me.. 

Hi Ronald

I am using jbpm-jpdl-3.2.GA as my jboss jbpm runtime in eclipse.

I included the eclipse plugins which are inside the D:\jbpm-jpdl-3.2.GA\designer\eclipse\plugins into my eclipse.

Then i added task to the start state. In the advanced properties for task, i found 
Due Date:
Blocking:
and Generate Form Button.

Clicking on the Generate Form Button i added the variables and i gave a file named "task.xhtml". once after doing this, i got the forms.xml and the task.xhtml inside my process dir.

  | 
  | forms.xml
  | ------------
  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <forms>
  |   <form task="task" form="task.xhtml"/>
  | </forms>
  | 
  | task.xhtml
  | ------------
  | 
  | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
  | 
  | <!-- the DOCTYPE means we are required to use html for a root element -->
  | <html xmlns="http://www.w3.org/1999/xhtml"
  |       xmlns:ui="http://java.sun.com/jsf/facelets"
  |       xmlns:c="http://java.sun.com/jstl/core"
  |       xmlns:h="http://java.sun.com/jsf/html"
  |       xmlns:f="http://java.sun.com/jsf/core"
  |       xmlns:tf="http://jbpm.org/jsf/tf"
  |       xmlns:jbpm="http://jbpm.org/jsf">
  | 
  |   <ui:component>
  | 
  |     <jbpm:dataform>
  |   	
  |       <f:facet name="header">
  |         <h:outputText value="#{taskName}"/>
  |       </f:facet>
  |         
  |       <!-- TASKFORM ROWS -->
  |       <jbpm:datacell>
  |         <f:facet name="header">
  |             <h:outputText value="name"/>
  |         </f:facet>
  |       <h:inputText value="#{var['name']}" />
  |       </jbpm:datacell>
  |       <jbpm:datacell>
  |         <f:facet name="header">
  |             <h:outputText value="number"/>
  |         </f:facet>
  |       <h:inputText value="#{var['number']}" />
  |       </jbpm:datacell>
  |     	    	    
  |       <jbpm:datacell>
  |         <f:facet name="header">
  |           <h:outputText value="Actions"/>
  |         </f:facet>
  |         <!-- TASKFORM BUTTONS -->
  |         <tf:saveButton value="Save"/>
  |         <tf:cancelButton value="Cancel"/>
  |         <tf:transitionButton transition="to_state" value="to_state"/>
  |       </jbpm:datacell>
  | 	    
  |     </jbpm:dataform>	
  |     
  |   </ui:component>
  | 
  | </html>
  | 
  | 
  | 

Only by generating form, i couldn't get the variables in the jbpm-console.

If i am giving that variables in default controller only, the variables are displayed in the process instance otherwise not.

Then i deployed my process definition in the D:\jbpm-jpdl-3.2.GA\server

It is deployed sucessfully with that variables but i coudn't edit the value of the variable (Even if i am giving it in default controller) in Jbpm console.

Help me in the code and suggest which server to use and how to deploy.

Thanks 
Ambika.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055135#4055135

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055135



More information about the jboss-user mailing list