[rules-users] Issue in Integrating Guvnor and Form Builder

Zahid Ahmed zahid.ahmed at emirates.com
Mon May 20 09:51:38 EDT 2013


Hi,

Want to add that I am getting my processIds and task ids in IO-DATA tab
[cid:image002.png at 01CE5582.AD67BF10]

But still Unable to link it in guvnor

Regards,

Zahid

From: Zahid Ahmed
Sent: 20 May 2013 17:36
To: Rules Users List (rules-users at lists.jboss.org)
Subject: Issue in Integrating Guvnor and Form Builder

Hi,

I am having an issue in integrating GUVNOR and JBPM-FORM-BUILDER. I cannot find any link between form builder and guvnor. Although I can create/open form definitions in guvnor using form builder but, when I save the form definition a popup is displayed with disable drop downs of "Process ID" and "TASK ID"

Problem :
                How to link forms with processes in guvnor. Do I have to keep form builder as standalone form designer, generate forms and then upload manually as FTLs in guvnor with names "<tasknam>-taskform" or there's someway to directly link forms to human tasks.


1.       Standalone form builder

a.       Resources are not linked to guvnor process's and tasks. Guvnor path provided in spring-components.xml (content pasted in email below)


2.       Form builder embedded in guvnor

a.       Resources are not linked to guvnor process's and tasks. Guvnor path provided in spring-components.xml (content pasted in email below)





[cid:image003.png at 01CE5582.AD67BF10]


Environment :

Server Node:

1.       drools-guvnor.war

2.       designer.war

3.       jbpm-form-builder.war

Server tried with

a.       Jboss AS-7.1

2.       Guvnor 5.4.0

3.       Jbpm-form-builder 5.4

Guvnor   Preference.properties: path=>drools-guvnor.war/WEB-INF/classes/

#
# Global preferences for Guvnor web app.

visual-ruleflow=true
verifier=true
oryx-bpmn-editor=true
# asset.format.enabled.XYZ determines if format XYZ (as named inside guvnor extensions)
# is enabled on the current guvnor instalation
asset.format.enabled.formdef=true

# Date and language settings
drools.dateformat=dd-MMM-yyyy
drools.defaultlanguage=en
drools.defaultcountry=US

#RuleModeller (guided editor) checkbox default value
rule-modeller-onlyShowDSLStatements=false

#Designer configuration
designer.url=http://localhost:8080
#Do not change this unless you know what are you doing
designer.context=designer
designer.profile=jbpm

#FormBuilder configuration
#Do not change this unless you know what are you doing
formbuilder.url=http://localhost:8080
formbuilder.context=jbpm-form-builder
formbuilder.profile=guvnor



Form-builder . springcomponents.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:p="http://www.springframework.org/schema/p"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="
          http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
          http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd">

    <!-- Select configuration strategy -->
    <bean id="strategy" class="java.lang.String">
      <constructor-arg type="java.lang.String" value="guvnor"/>
    </bean>

    <!-- Guvnor configuration -->

    <bean id="guvnorUrl" class="java.lang.String">
      <constructor-arg type="java.lang.String" value="http://localhost:8080/drools-guvnor"/>
    </bean>

    <bean id="guvnorUser" class="java.lang.String">
      <constructor-arg type="java.lang.String" value="admin"/>
    </bean>

    <bean id="guvnorPass" class="java.lang.String">
      <constructor-arg type="java.lang.String" value="admin"/>
    </bean>

    <bean id="serviceFactory" class="org.jbpm.formbuilder.server.ServiceFactory" factory-method="getInstance"/>

    <!-- Guvnor services -->

    <bean id="guvnorFileService" class="org.jbpm.formbuilder.server.file.GuvnorFileService">
      <property name="baseUrl" ref="guvnorUrl"/>
      <property name="user" ref="guvnorUser"/>
      <property name="password" ref="guvnorPass"/>
    </bean>

    <bean id="guvnorFormService" class="org.jbpm.formbuilder.server.form.GuvnorFormDefinitionService">
      <property name="baseUrl" ref="guvnorUrl"/>
      <property name="user" ref="guvnorUser"/>
      <property name="password" ref="guvnorPass"/>
    </bean>

    <bean id="guvnorTaskService" class="org.jbpm.formbuilder.server.task.GuvnorTaskDefinitionService">
      <property name="baseUrl" ref="guvnorUrl"/>
      <property name="user" ref="guvnorUser"/>
      <property name="password" ref="guvnorPass"/>
    </bean>

    <bean id="guvnorMenuService" class="org.jbpm.formbuilder.server.menu.GuvnorMenuService">
    </bean>

</beans>

Regards,
Zahid



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130520/15779319/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 26297 bytes
Desc: image002.png
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20130520/15779319/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 63406 bytes
Desc: image003.png
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20130520/15779319/attachment-0003.png 


More information about the rules-users mailing list