[jboss-user] [jBPM] New message: "Re: How to create a graphical collection of already defined tasks?"
Falko Menge
do-not-reply at jboss.com
Tue Mar 2 10:24:17 EST 2010
User development,
A new message was posted in the thread "How to create a graphical collection of already defined tasks?":
http://community.jboss.org/message/529391#529391
Author : Falko Menge
Profile : http://community.jboss.org/people/falko.menge
Message:
--------------------------------------------------------------
I implemented a generator for stencilset extensions for exactly that purpose in the Oryx project, which forms the core of the Signavio editor. The generator allows to create stencil set extensions containing pre-configured model elements, e.g., jBPM Java activities, which will appear in the pallete on the left. You can see that in action by pointing a Mozilla Firefox to http://com.posr.ws/oryx/servicecomposer?svc0=http%3A%2F%2Fposr.ws%2Finstantsvc%2Fservices%2Fsoap.php%2FukCompaniesHouseEmulatorRpcLit%3Fwsdl&svc0_pt0=ukCompaniesHouseEmulatorRpcLitPortType&svc0_pt0_op0=checkCompanyName&svc0_pt0_op0_in0_name=companyName&svc0_pt0_op0_in0_type=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema^string&svc0_pt0_op0_out0_name=return&svc0_pt0_op0_out0_type=http%3A%2F%2Fposr.ws%2Finstantsvc%2Fservices%2Fsoap.php%2FukCompaniesHouseEmulatorRpcLit^ArrayOfukCompanyInfo&svc0_pt0_op0_ui0=http%3A%2F%2Flocalhost%2Fservice-uis%2Fgenerated-by%2Fibm%2FcheckCompanyName.xhtml&svc0_pt0_op0_ui1=http%3A%2F%2Flocalhost%2Fservice-uis%2Fgenerated-by%2Ftambet-matiisen%2FcheckCompanyName.xhtml&svc0_pt0_op0_ui2=http%3A%2F%2Flocalhost%2Fservice-uis%2Fgenerated-by%2Ftambet-matiisen%2FcheckCompanyName.edit.xhtml&svc0_pt0_op1=checkDisqualifiedDirectorsRegister&svc0_pt0_op1_ui0=http%3A%2F%2Flocalhost%2Fservice-uis%2Fgenerated-by%2Fibm%2FcheckDisqualifiedDirectorsRegister.xhtml&svc0_pt0_op2=fileForm10&svc0_pt0_op2_ui0=http%3A%2F%2Flocalhost%2Fservice-uis%2Fgenerated-by%2Fibm%2FfileForm10.xhtml&svc0_pt0_op2_ui1=http%3A%2F%2Flocalhost%2Fservice-uis%2Fgenerated-by%2Ftambet-matiisen%2FfileForm10.xhtml&svc0_pt0_op2_ui2=http%3A%2F%2Flocalhost%2Fservice-uis%2Fgenerated-by%2Ftambet-matiisen%2FfileForm10.edit.xhtml&svc0_pt0_op3=fileForm12&svc0_pt0_op3_ui0=http%3A%2F%2Flocalhost%2Fservice-uis%2Fgenerated-by%2Fibm%2FfileForm12.xhtml&svc1=http%3A%2F%2Fposr.ws%2Finstantsvc%2Fservices%2Fsoap.php%2FDirectorsRegisterService1236791708888%3Fwsdl&svc1_pt0=DirectorsRegisterService1236791708888PortType&svc1_pt0_op0=findDirectors&svc1_pt0_op0_in0_name=findDirectors&svc1_pt0_op0_in0_type=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema^string&svc1_pt0_op0_out0_name=findDirectorsResponse&svc1_pt0_op0_out0_type=http%3A%2F%2Fposr.ws%2Finstantsvc%2Fservices%2Fsoap.php%2FDirectorsRegisterService1236791708888^ArrayOfDirectorsRegisterService1236791708888Result&svc2=http%3A%2F%2Fws.nominalia.com%2FWS%2FNominaliaWS.asmx%3FWSDL&svc2_pt0=NominaliaWSSoap&svc2_pt0_op0=checkDomain&svc2_pt0_op0_in0_name=parameters&svc2_pt0_op0_in0_type=http%3A%2F%2Fws.nominalia.com%2Foperations^checkDomain&svc2_pt0_op0_out0_name=parameters&svc2_pt0_op0_out0_type=http%3A%2F%2Fws.nominalia.com%2Foperations^checkDomainResponse&svc3=http%3A%2F%2Fmihannic.com%2Fwebservice%2Findex.php%3Fwsdl&svc3_pt0=mihannicWSDLPortType&svc3_pt0_op0=checkDomain&svc3_pt0_op0_in0_name=domain_name&svc3_pt0_op0_in0_type=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema^string&svc3_pt0_op0_out0_name=result&svc3_pt0_op0_out0_type=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema^boolean&svc3_pt0_op0_out1_name=whois&svc3_pt0_op0_out1_type=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema^string&svc3_pt0_op0_out2_name=error&svc3_pt0_op0_out2_type=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema^string (http://posr.ws/screenshots/com.posr.png).
The http://code.google.com/p/oryx-editor/source/browse/trunk/editor/server/src/org/oryxeditor/server/StencilSetExtensionGenerator.java can be started by sending a HTTP-POST request to a http://code.google.com/p/oryx-editor/source/browse/trunk/editor/server/src/org/oryxeditor/server/StencilSetExtensionGeneratorServlet.java. An example http://code.google.com/p/oryx-editor/source/browse/trunk/editor/test/examples/stencilset-extension-generator.xhtml and http://code.google.com/p/oryx-editor/source/browse/trunk/editor/test/examples/design-thinking-example-data.csv to send such a request also provided. The generator is also included in the jBPM releases since version 4.1. However, it is not enabled by default, the example files are missing, and the http://code.google.com/p/oryx-editor/source/browse/trunk/editor/server/src/org/oryxeditor/server/Repository.java is not configured with the correct paths.
Thus, I suggest to grab the source from http://code.google.com/p/signavio-oryx-initiative/source/checkout or directly from http://code.google.com/p/oryx-editor/source/checkout to get all related files.
Then you have to compile the http://code.google.com/p/oryx-editor/source/browse/trunk/editor/server/src/org/oryxeditor/server/Repository.java with correct paths and enable the servlet in the web.xml of the jbpmeditor.war, i.e., with:
<servlet>
<display-name>Stencilset Extension Generator Servlet</display-name>
<servlet-name>StencilSetExtensionGeneratorServlet</servlet-name>
<servlet-class>
org.oryxeditor.server.StencilSetExtensionGeneratorServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>StencilSetExtensionGeneratorServlet</servlet-name>
<url-pattern>/editor/stencilset-extension-generator</url-pattern>
</servlet-mapping>
You may also need to create the folder 'jbpmeditor.war/editor/stencilsets/extensions/generated-stencil-set-extensions', which is used to store the generated exceptions.
So there is a chance, that you can use this to solve your problem. However, it will definitely not work out of the box. If you have further questions regarding the stencilset extension generator or Oryx in general, I'll be happy to answer them.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529391#529391
More information about the jboss-user
mailing list