ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB 9: JSON REST Api / IBM BPM

Post new topic  Reply to topic
 IIB 9: JSON REST Api / IBM BPM « View previous topic :: View next topic » 
Author Message
akil
PostPosted: Mon Aug 04, 2014 8:44 am    Post subject: IIB 9: JSON REST Api / IBM BPM Reply with quote

Partisan

Joined: 27 May 2014
Posts: 338
Location: Mumbai

Hi

We have IIB 9 advanced, and IBM BPM 8.5 standard, and we have a requirement to initiate a BPM workflow instance as part of a IIB message flow.

Following is my understanding :
1. I can't use he SCA nodes as I have BPM Standard
2. I can use REST Api, but for this I need to make a JSON message.

The message flow is triggered via a Soap call , which is modelled in the XMLNSC domain, since JSON message models are not supported, I can't use the mapping nodes.

What is the conventional way to deal with such scenario? Create the JSON using ESQL? the payload is pretty bit, around 400 elements, this will be a pretty big esql compute...

Is there some other way?
_________________
Regards
Back to top
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Mon Aug 04, 2014 8:48 am    Post subject: Re: IIB 9: JSON REST Api / IBM BPM Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

akil wrote:
Create the JSON using ESQL? the payload is pretty bit, around 400 elements, this will be a pretty big esql compute...


Start typing....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Aug 04, 2014 8:53 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Well, you could write a JavaCompute node and create some kind of class that would serialize to a JSON message....

but you'd still have to call 400 setters.

Like even with a map, you'd still have to draw about 400 lines...
Back to top
View user's profile Send private message
akil
PostPosted: Mon Aug 04, 2014 9:00 am    Post subject: Reply with quote

Partisan

Joined: 27 May 2014
Posts: 338
Location: Mumbai

True, but drawing the lines 'seems' faster than writing the set outputroot.json.. = ..

Is there any XML interface available for BPM standard?
_________________
Regards
Back to top
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Mon Aug 04, 2014 9:14 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

akil wrote:
True, but drawing the lines 'seems' faster than writing the set outputroot.json.. = ..


Cut and paste is a wonderful feature?

akil wrote:
Is there any XML interface available for BPM standard?


XML over a REST interface? The WebAPI pureists will come for you in the night.......
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Aug 04, 2014 10:07 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Vitor wrote:
akil wrote:
True, but drawing the lines 'seems' faster than writing the set outputroot.json.. = ..


Cut and paste is a wonderful feature?


So are ESQL reference variables...

Were you going to get around to moving this to a more appropriate forum, Mr. Moderator?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Aug 04, 2014 11:30 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqjeff wrote:
Were you going to get around to moving this to a more appropriate forum, Mr. Moderator?


Doh!

So Moved.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Aug 04, 2014 1:56 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

If you are really keen to use the Mapping node then you could do it like this:
- Map to the required structure as an XMLNSC message tree
- Use a Compute node containing the single line
SET OutputRoot.JSON = InputRoot.XMLNSC;

It may not be quite as simple as that ( maybe some extra lines of ESQL would be required ), but at least the heavy lifting would be performed in a graphical map. Please note that this is mostly idle speculation on my part - I have never actually attempted this.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
akil
PostPosted: Mon Aug 04, 2014 7:23 pm    Post subject: Reply with quote

Partisan

Joined: 27 May 2014
Posts: 338
Location: Mumbai

Thank you, will try and post what worked for me in 3 days.

When I asked about the XML interface, I meant anything other than REST .
_________________
Regards
Back to top
View user's profile Send private message Visit poster's website
mb01mqbrkrs
PostPosted: Tue Aug 05, 2014 6:28 am    Post subject: Re: IIB 9: JSON REST Api / IBM BPM Reply with quote

Apprentice

Joined: 18 Nov 2011
Posts: 48

akil wrote:
Hi

We have IIB 9 advanced, and IBM BPM 8.5 standard, and we have a requirement to initiate a BPM workflow instance as part of a IIB message flow.

Following is my understanding :
1. I can't use he SCA nodes as I have BPM Standard
2. I can use REST Api, but for this I need to make a JSON message.

The message flow is triggered via a Soap call , which is modelled in the XMLNSC domain, since JSON message models are not supported, I can't use the mapping nodes.

What is the conventional way to deal with such scenario? Create the JSON using ESQL? the payload is pretty bit, around 400 elements, this will be a pretty big esql compute...

Is there some other way?


I'd double check with your BPM developers. We have been able to start a BPM process using a SOAP service running on BPM (Standard 8.0.1)
Back to top
View user's profile Send private message
akil
PostPosted: Tue Aug 05, 2014 7:56 am    Post subject: Reply with quote

Partisan

Joined: 27 May 2014
Posts: 338
Location: Mumbai

Will recheck with them , they said they can create a soap service that is specific to a process , while we are looking for a standard Api that can start any process , like the REST interface,
_________________
Regards
Back to top
View user's profile Send private message Visit poster's website
mb01mqbrkrs
PostPosted: Tue Aug 05, 2014 8:15 am    Post subject: Reply with quote

Apprentice

Joined: 18 Nov 2011
Posts: 48

akil wrote:
Will recheck with them , they said they can create a soap service that is specific to a process , while we are looking for a standard Api that can start any process , like the REST interface,


Good point - yes, we are only using it for specific processes, and the WSDLs are tied to that particular process.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB 9: JSON REST Api / IBM BPM
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.