Moved to jBPM forum
the jbpm-form-modeler apis aren't included on the jBPM eclipse plugin. You should add the jbpm-form-modeler-api-<version>.jar on your project lib.
Thank you. That's not clear in the manual, though... I was expecting maven to get that dependency.
Hi Bruno, please feel free to contribute back that section to the manual. Sometimes we don't have time for doing everything by ourselves.
Are you able to show me which repo (or directory in the repo) has the manual so that I can push my suggested changes?
1 of 1 people found this helpful
You can find the FormModeller directory there.. and please send Pull Requests so we can review them and merge the changes into the master
I'll make fixes and such but first, I'll have to be able to do it myself, otherwise I may be writing false information.
Did you get your custom field working? According to Chapter 13. Form Modeler, I am unable to put my JAR on the application server (JBoss AS 7.1.1) and get my custom field in the modeler...
you should add your jar to your server classpath, I think that the easyest way is to do it now is adding it on your war WEB-INF/lib folder. I'll be working to improve it soon, by adding it as a project dependency.
Unfortunately, no. I was forced to move to a different part of the project.
In order to solve that:
Try placing the .jar inside the .war's .jar inside:
Also, change the file:
So that it includes an entry in the JSON-like array such that it follows this template:
"SomeInternalName": new fully.qualified.className()
For example (for the class: org.my.awsome.Input):
"MyAwsomeInput": new org.my.awsome.Input()
If you are appending, you will need to add a comma to the end of the previous line.
Otherwise, you may need to place a comma at the end of the previous entry or after that entry.
No,no! You have to change the .war file itself!
I tried to to that, but without any success. I don't know where to put my custom type compiled jar... I tried to set a classpath, no success. I tried to load my custom type through jboss modules, no success.
Thank you for the CustomWorkItemHandlers.conf tip... I don't even know I have to modify that file...
If I correctly understand, I have to put my AvesomeInput.jar in the jbpm-console.war's WEB-INF/lib... I currently don't know how to modify and then build this war
Dos your .jar contain the META-INF/beans.xml file? It is needed to make CDI Inject your Custom Field to the CustomFieldTypeProvider.
So, what I done:
- git clone droolsjbpm/jbpm
- git clone droolsjbpm/jbpm-form-modeler
- mvn package the custom file input type sample from the form modeler and put the JAR in jbpm-installer/dependencies. It contains an empty beans.xml. I think trying with an official sample should be a good way for testing custom types
- Append jbpm-installer/conf/META-INF/CustomWorkItemHandlers.conf with "FileInput": new org.jbpm.formModeler.core.fieldTypes.file.FileCustomType()
- ant clean.demo
- ant install.demo.noeclipse
- ant start.demo.noeclipse
Working after some failed deployments and a machine reboot...!
EDIT: Fixed the CustomWorkItemHandlers.conf path