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 Interchange Server + Adapters » ohw to access map as an object in collaboration design

Post new topic  Reply to topic
 ohw to access map as an object in collaboration design « View previous topic :: View next topic » 
Author Message
jeevan
PostPosted: Thu Nov 17, 2005 10:22 am    Post subject: ohw to access map as an object in collaboration design Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

some of the field of the bo are to be assigned after preocessing, how can we access the different business objects inside the collaboration
Back to top
View user's profile Send private message
Ratan
PostPosted: Thu Nov 17, 2005 10:27 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

lookup the collaboration and MAP APIs.
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
urs
PostPosted: Thu Nov 17, 2005 2:34 pm    Post subject: Where are these API's available ? Reply with quote

Acolyte

Joined: 27 Oct 2005
Posts: 56

Mr.Ratan

Are these collaboration and map API's present in the repository. I could find the "ProcessTemplateCreatAndStartInstance" Java code.

Is that what you meant, or something else. If something different are there any links available.

Thanks,
urs
Back to top
View user's profile Send private message Send e-mail
jeevan
PostPosted: Thu Nov 17, 2005 3:32 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

let me ask a simple question

can any BO be manipulated in Collab? or only those which are mentioned in port and triggering

these are available as From/out/to/In whatever name we give in the port and triggering event rwo Am I right?

can a map be called from collab and can that be programmed graphically?

Please reply with some step. that would be helpful.

thanks
Back to top
View user's profile Send private message
djeripo
PostPosted: Thu Nov 17, 2005 4:08 pm    Post subject: Reply with quote

Master

Joined: 25 Jan 2004
Posts: 225

Inside the collaboration,The BO that is going to be manipulated is GBO.That is the one which you get from 'From' port.Collaboration subscribes to this TLO(Toplevel BusinessObject) ,once it see's this TLO in the Connector Controller,it gets it manipulates on it and sends to the 'To' port on doing the service call inside the collab.

I have used 'From' and 'To' ports for your understanding.It can be anything either you wish or business wishes.
Back to top
View user's profile Send private message Visit poster's website
jeevan
PostPosted: Thu Nov 17, 2005 4:45 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

thanks.

How can we make service call to adapter and map from within the collaboration?
Back to top
View user's profile Send private message
jeevan
PostPosted: Thu Nov 17, 2005 4:47 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

when we add service call, and assign the property, the only variables available are frombusobj, tobusobj and triggeringbusobj. How can I make call to adapter to send an object created in collaboration?

pls ignore the case of character
Back to top
View user's profile Send private message
kotha
PostPosted: Thu Nov 17, 2005 8:34 pm    Post subject: Reply with quote

Partisan

Joined: 12 Mar 2005
Posts: 333

In a collaboration, you can write java code to access any element of any BO.
look at the sample codes in the help.
For Example:
String WFRequestType = triggeringBusObj.getString("Main_Order.ICSInOutStruct.RequestType");
String EIFOC = null;
String orderId = null;
if(WFRequestType != null && WFRequestType.trim().equalsIgnoreCase("R"))
{
EIFOC = "I";
orderId = GUI_RetrieveAddressBusObj.getString("Response.DetailQueryResult.Customer.Orders.Order[0].StartDateID");
}else
{
EIFOC = "D";
orderId = GUI_RetrieveAddressBusObj.getString("Response.DetailQueryResult.Customer.Orders.Order[0].EndDateID");
}

EIBusObj.setWithCreate("Request.ALIUpdateRequest.FOC", EIFOC);
EIBusObj.setWithCreate("Request.HEADER.ORD", orderId);
frombusobj, tobusobj and triggeringbusobj.

From the above code you should be able to understand that two different fields are called from two different BOs.

And I see a post from you asking how to run a Map in collab.
See the following code and understand it and put this code in the action button of the collab.

{


// run map from gbo to PROVE asbo

CxExecutionContext globalContext = new CxExecutionContext();
MapExeContext mapContext = new MapExeContext();
globalContext.setContext(CxExecutionContext.MAPCONTEXT, mapContext);
mapContext.setInitiator(MapExeContext.EVENT_DELIVERY);

BusObj[] sBO = { triggeringBusObj };
BusObj[] dBO = DtpMapService.runMap("MQWF_UpdateEICollabStructTLO_TO_E911GUI_DetailQueryTLO",
DtpMapService.CWMAPTYPE, sBO, globalContext);

GUI_RetrieveAddressBusObj = dBO[0].duplicate();

trace(5,"##### GUI_RetrieveAddressBusObj: " + GUI_RetrieveAddressBusObj.toString());
}



And you also asked about the port businessobjects. There will be lot of ports depending on the Collab and you have select the BO that the connector is expecting as input. If your connector is expecting the BO triggered, you select the triggeringBusObj.

It is better if you go through with the collabs that are already developed (if any from previous project from your client) and understand the flow.

Any question, post here too!!!
Back to top
View user's profile Send private message
jeevan
PostPosted: Fri Nov 18, 2005 8:20 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

I understand the BO coming from the port. What exactly is a triggeriung BO?
Back to top
View user's profile Send private message
kotha
PostPosted: Fri Nov 18, 2005 10:02 am    Post subject: Reply with quote

Partisan

Joined: 12 Mar 2005
Posts: 333

http://www.catb.org/~esr/faqs/smart-questions.html
Back to top
View user's profile Send private message
Ratan
PostPosted: Mon Nov 21, 2005 10:39 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

A triggering bo is the BO the collaboration subscribed for.
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
Ratan
PostPosted: Mon Nov 21, 2005 10:41 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

Quote:
Mr.Ratan

Are these collaboration and map API's present in the repository. I could find the "ProcessTemplateCreatAndStartInstance" Java code.

Is that what you meant, or something else. If something different are there any links available.

Thanks,
urs


The API can be found in ICS documentation

Link: http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » ohw to access map as an object in collaboration design
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.