-
1. Re: Creating a custom Field: org.jbpm.formModeler Cannot be resolved to a type
ctomc Mar 10, 2014 12:56 PM (in response to brunoais)Moved to jBPM forum
-
2. Re: Creating a custom Field: org.jbpm.formModeler Cannot be resolved to a type
pere.fernandez Mar 11, 2014 3:09 PM (in response to brunoais)Hi Bruno,
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.
Regards,
Pere
-
3. Re: Creating a custom Field: org.jbpm.formModeler Cannot be resolved to a type
brunoais Mar 12, 2014 4:22 AM (in response to pere.fernandez)Thank you. That's not clear in the manual, though... I was expecting maven to get that dependency.
-
4. Re: Creating a custom Field: org.jbpm.formModeler Cannot be resolved to a type
salaboy21 Mar 12, 2014 7:31 AM (in response to brunoais)Hi Bruno, please feel free to contribute back that section to the manual. Sometimes we don't have time for doing everything by ourselves.
-
5. Re: Creating a custom Field: org.jbpm.formModeler Cannot be resolved to a type
brunoais Mar 12, 2014 7:33 AM (in response to salaboy21)Are you able to show me which repo (or directory in the repo) has the manual so that I can push my suggested changes?
-
6. Re: Creating a custom Field: org.jbpm.formModeler Cannot be resolved to a type
salaboy21 Mar 12, 2014 7:37 AM (in response to brunoais)1 of 1 people found this helpfulYou can find the FormModeller directory there.. and please send Pull Requests so we can review them and merge the changes into the master
Thanks!
-
7. Re: Creating a custom Field: org.jbpm.formModeler Cannot be resolved to a type
brunoais Mar 14, 2014 5:51 AM (in response to salaboy21)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.
-
8. Re: Creating a custom Field: org.jbpm.formModeler Cannot be resolved to a type
jocelyn.duc Mar 27, 2014 10:13 AM (in response to brunoais)Hello Bruno,
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...
-
9. Re: Creating a custom Field: org.jbpm.formModeler Cannot be resolved to a type
pere.fernandez Mar 27, 2014 10:25 AM (in response to jocelyn.duc)Hi Jocelyn,
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.
Regards,
Pere
-
10. Re: Creating a custom Field: org.jbpm.formModeler Cannot be resolved to a type
brunoais Mar 27, 2014 10:44 AM (in response to jocelyn.duc)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:
WEB-INF/lib
Also, change the file:
/WEB-INF/classes/META-INF/CustomWorkItemHandlers.conf
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.
Search for: CustomWorkItemHandlers.conf in here: Chapter 5. Core Engine API
EDIT:
No,no! You have to change the .war file itself!
-
11. Re: Creating a custom Field: org.jbpm.formModeler Cannot be resolved to a type
jocelyn.duc Mar 27, 2014 10:35 AM (in response to pere.fernandez)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.
-
12. Re: Creating a custom Field: org.jbpm.formModeler Cannot be resolved to a type
jocelyn.duc Mar 27, 2014 10:44 AM (in response to brunoais)Hello,
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
-
13. Re: Creating a custom Field: org.jbpm.formModeler Cannot be resolved to a type
pere.fernandez Mar 27, 2014 11:26 AM (in response to jocelyn.duc)Dos your .jar contain the META-INF/beans.xml file? It is needed to make CDI Inject your Custom Field to the CustomFieldTypeProvider.
-
14. Re: Re: Creating a custom Field: org.jbpm.formModeler Cannot be resolved to a type
jocelyn.duc Apr 4, 2014 7:58 AM (in response to pere.fernandez)Hi,
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