Author |
Message
|
jeevan |
Posted: Thu Nov 17, 2005 10:22 am Post subject: ohw to access map as an object in collaboration design |
|
|
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 |
|
 |
Ratan |
Posted: Thu Nov 17, 2005 10:27 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
lookup the collaboration and MAP APIs. _________________ -Ratan |
|
Back to top |
|
 |
urs |
Posted: Thu Nov 17, 2005 2:34 pm Post subject: Where are these API's available ? |
|
|
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 |
|
 |
jeevan |
Posted: Thu Nov 17, 2005 3:32 pm Post subject: |
|
|
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 |
|
 |
djeripo |
Posted: Thu Nov 17, 2005 4:08 pm Post subject: |
|
|
 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 |
|
 |
jeevan |
Posted: Thu Nov 17, 2005 4:45 pm Post subject: |
|
|
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 |
|
 |
jeevan |
Posted: Thu Nov 17, 2005 4:47 pm Post subject: |
|
|
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 |
|
 |
kotha |
Posted: Thu Nov 17, 2005 8:34 pm Post subject: |
|
|
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 |
|
 |
jeevan |
Posted: Fri Nov 18, 2005 8:20 am Post subject: |
|
|
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 |
|
 |
kotha |
Posted: Fri Nov 18, 2005 10:02 am Post subject: |
|
|
Partisan
Joined: 12 Mar 2005 Posts: 333
|
|
Back to top |
|
 |
Ratan |
Posted: Mon Nov 21, 2005 10:39 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
A triggering bo is the BO the collaboration subscribed for. _________________ -Ratan |
|
Back to top |
|
 |
Ratan |
Posted: Mon Nov 21, 2005 10:41 am Post subject: |
|
|
 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 |
|
 |
|