[JBoss jBPM] - Re: Round trip process to task variable mapping
by msandoz
looking at old posts this topic has been addressed under dataflow and "Add support for specifying process context variable values in the process definition xml"
this is what ive come up with for my situation and id like to know if the solution is reasonable or if there are capabilities of jbpm that im not using through ignorance.
anyway heres what ive done so far:
an xsd for validating data maps
| <?xml version="1.0" encoding="UTF-8"?>
| <xsd:schema targetNamespace="http://www.nexusbpm.org/JbpmDataFlowSchema" elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:df="http://www.nexusbpm.org/JbpmDataFlowSchema">
| <xsd:complexType name="mappingsType">
| <xsd:sequence minOccurs="0" maxOccurs="unbounded">
| <xsd:element name="mapping" type="df:mappingType"></xsd:element>
| </xsd:sequence>
| </xsd:complexType>
|
| <xsd:complexType name="mappingType">
|
| <xsd:sequence minOccurs="0" maxOccurs="1">
| <xsd:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
| </xsd:sequence>
| <xsd:attribute name="name" type="xsd:string" use="required"></xsd:attribute>
| <xsd:attribute name="source" type="xsd:string" use="optional"></xsd:attribute>
| <xsd:attribute name="destination" type="xsd:string"
| use="optional">
| </xsd:attribute>
| </xsd:complexType>
|
| <xsd:element name="mappings" type="df:mappingsType">
| <xsd:unique name="oneMapPerName">
| <xsd:selector xpath="df:mapping"/>
| <xsd:field xpath="@name"/>
| </xsd:unique>
| </xsd:element>
|
| </xsd:schema>
an example of a data map that would be embedded in a node variable:
| <df:mappings xmlns:df="http://www.nexusbpm.org/JbpmDataFlowSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nexusbpm.org/JbpmDataFlowSchema JbpmDataFlowSchema.xsd " >
| <df:mapping name="localvar1" source="processvarname" />
| <df:mapping name="localvar2">embedded data</df:mapping>
| <df:mapping name="outvar1" destination="destvar"/>
| </df:mappings>
|
for the jpdl i would use something like in the JIRA ticket:
| <process-state name="p">
| <event type="node-enter">
| <script>
| <variable name="myvariable" access="write" />
| <expression>myvariable = "myvalue"</expression>
| </script>
| </event>
|
or another alternative that seems to work for a process variable:
| <script>
| executionContext.setVariable("jythonCode", "print 'foo';");
| </script>
| </event>
|
an in-place example of mapping would be:
<node name="jython2">
| <action class="com.nexusbpm.services.jython.JythonService">
| <mappings>
| <mapping name="jythonCode">print 'foo';</mapping>
| <mapping name="output" destination="output"/>
| <mapping name="error" destination="error"/>
| </mappings>
| </action>
| <transition name="toEnd" to="end"></transition>
| </node>
|
and then a base class for all my node types that will take the initialized mappings and turn them into local variables for use by the subclasses.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050519#4050519
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050519
18Â years, 10Â months
[JBoss Portal] - Ldap authentication on Jboss portal 2.6 cr2
by georgy
I am trying to authenticate users registered in my ldap base. I am using an Active directory server. I replaced identity-config.xml by ldap_identity-config.xml in the jboss-service.xml file and i configured my ldap connection (modification of ldap_identity-config.xml). But when start the portal, i get the following "exception":
| --- MBeans waiting for other MBeans ---
| ObjectName: portal:service=Module,type=IdentityServiceController
| State: FAILED
| Reason: org.jboss.portal.identity.IdentityException: Cannot initiate identity modules:
| I Depend On:
| portal:service=Hibernate
| portal:service=IdentityEventManager
| Depends On Me:
| portal:service=ApprovePublish,type=Workflow
| portal:service=CMS
| portal:service=AuthorizationProvider,type=cms
| portal:name=ACL,service=Interceptor,type=Cms
| portal.management:name=Default,service=Management,type=Identity
| portal:name=User,service=Interceptor,type=Server
| portal:service=Module,type=Mail
| portal:service=CustomizationManager
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: portal:service=Module,type=IdentityServiceController
| State: FAILED
| Reason: org.jboss.portal.identity.IdentityException: Cannot initiate identity modules:
| I Depend On:
| portal:service=Hibernate
| portal:service=IdentityEventManager
| Depends On Me:
| portal:service=ApprovePublish,type=Workflow
| portal:service=CMS
| portal:service=AuthorizationProvider,type=cms
| portal:name=ACL,service=Interceptor,type=Cms
| portal.management:name=Default,service=Management,type=Identity
| portal:name=User,service=Interceptor,type=Server
| portal:service=Module,type=Mail
| portal:service=CustomizationManager
|
Does anybody know the cause of this problem?
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050510#4050510
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050510
18Â years, 10Â months