-
1. Re: Usage of KIE WB data object with Remote REST API
pandyajayn Apr 5, 2014 12:00 PM (in response to marcj)Hi - I am also looking for a solution of same type of problem so please let me know if you get any answer here
-
2. Re: Usage of KIE WB data object with Remote REST API
marcj Apr 6, 2014 5:08 AM (in response to pandyajayn)Unfortunately not yet. Hope there will be some hints from the community soon. In my opinion. the continuous mapping from process variables to data object parameters unnecessarily complicates every business process and kind of makes the usage of data objects useless...
So I hope there will be a solution...
-
3. Re: Usage of KIE WB data object with Remote REST API
swiderski.maciej Apr 7, 2014 1:38 AM (in response to marcj)1 of 1 people found this helpful -
4. Re: Usage of KIE WB data object with Remote REST API
marcj Apr 8, 2014 1:50 AM (in response to swiderski.maciej)Hey Maciej,
thx for your reply. That's a hint in the right direction. Is there a description how to generate a JAXB object?
Could you please provide an example REST call to start a process including a data object?
-
5. Re: Usage of KIE WB data object with Remote REST API
marcj Apr 9, 2014 3:34 AM (in response to marcj)pandyajayn - have you been able to do a REST call including a JAXB/JSON object?
-
6. Re: Usage of KIE WB data object with Remote REST API
pandyajayn Apr 9, 2014 9:19 AM (in response to marcj)no still struggling but i got some hint that i have to create my data object (entity class) in jBPM and then have to export the same as a JAR and this JAR file i have to include in my project. This way i guess we can resolve this issue. I am gona try this out today and will let you know. If you get any solution based on this input please let me know.
-
7. Re: Usage of KIE WB data object with Remote REST API
marcj Apr 11, 2014 2:10 AM (in response to pandyajayn)Sounds interesting - would be very interesting if you did succeed...
-
8. Re: Usage of KIE WB data object with Remote REST API
swiderski.maciej Apr 11, 2014 4:21 AM (in response to marcj)guys, try following:
- create project one in kie-wb that will contain your data model
- create project two in kie-wb that will contain your business assets (processes, rules, etc)
- define project one as dependency in project two
- build project one then build project two
- get project one from kie-wb's maven repo and attach it as dependency of your client code that will use REST remote java api
with all that you should be able to utilize your custom classes with remote api.
HTH
-
9. Re: Usage of KIE WB data object with Remote REST API
shishaozheng May 19, 2016 12:12 AM (in response to swiderski.maciej)hi,
Thank you for your reply, I'm following your steps, but here is a problem:
I have created project one in kie-wb that contain my data model, created project two and define project one as dependency in project two.
Then I succeed to create my process in project two which use the data model in project one as the input variable. But when I try to generate all forms in process of project two. It failed with the following log message:
Data model couldn't be loaded, path: PathImpl{uri='default://master@cloud-repo/cloud', fileName='cloud', attrs={}}, projectPath: PathImpl{uri='default://master@cloud-repo/cloud', fileName='cloud', attrs={}}.
Should I do any configuration to make sure it will load the data model in project one correctly when try to generate all forms in process of project two?
Thanks