Author |
Message
|
alphamale |
Posted: Wed Feb 01, 2006 3:33 am Post subject: Business Objects with no BO Name or Verb in incoming data |
|
|
 Novice
Joined: 09 Feb 2005 Posts: 12 Location: UK
|
Does anyone know if you can get adapters (specifically JText) to accept data from an application that is unable to supply the BO Name and Verb in the actual data ?
If I try this, the adapter agent errors saying it can't find the BO Name in the input stream.
Since some applications cannot be amended to supply data with this info, surely there must be some way to default these values - but can't see how.
I'm using WBI Server Express Plus v4.4 and its included adapters. |
|
Back to top |
|
 |
nikman |
Posted: Wed Feb 01, 2006 8:05 am Post subject: |
|
|
Newbie
Joined: 31 Jan 2006 Posts: 9
|
Edit the datahandler so that it does not look for BOName and BOVerb in the data file supplied by external systems.
The Jtext will match to the correct MO and BO using the file extension of the file. Hence file extensions have to be unique in a Jtext adapters. |
|
Back to top |
|
 |
alphamale |
Posted: Thu Feb 02, 2006 1:38 am Post subject: |
|
|
 Novice
Joined: 09 Feb 2005 Posts: 12 Location: UK
|
Do you mean edit the Datahandler MO, or change the data handler code itself ?
I don't particularly want to create my own versions of each of the data handlers just to get around this problem  |
|
Back to top |
|
 |
lehare |
Posted: Thu Feb 02, 2006 4:21 am Post subject: |
|
|
 Apprentice
Joined: 25 Jul 2005 Posts: 48
|
nikman,
i have the same proplem and i edited the data handler [MO_DataHandler_DefaultFixedWidthConfig] by removing both BONameSize and BOVerbSize ... and the problem still persist.
i'm i by any chance editing the wrong data handler ... the thing that confuses me is that i'm only editing out the SIZE there is NO attribute for BOName and BOVerb in this data handler  |
|
Back to top |
|
 |
nikman |
Posted: Thu Feb 02, 2006 9:22 am Post subject: |
|
|
Newbie
Joined: 31 Jan 2006 Posts: 9
|
Try setting the BONameSize and BOVerbSize parmeter in the MO_Datahandler for EventDataHandler. This would tell the datahandler that the BO and Verb have size 0 in the file (assuming your BO does not have Name and Verb as attribute).
Also refer to the DataHandler Guide in the ICS doc. Will give a good understanding of the process. |
|
Back to top |
|
 |
lehare |
Posted: Fri Feb 03, 2006 12:48 am Post subject: |
|
|
 Apprentice
Joined: 25 Jul 2005 Posts: 48
|
in the data_handler guide on page 104 - is states that the FixedWidth data Handler makes the following ussumptions - 1. that the BOName is the first field, 2. that the VerbName is the second field
i tried setting both the fields sizes to 0 - and i still experienced IOException.
does this mean i will have to build my own custom evend data handler? |
|
Back to top |
|
 |
alphamale |
Posted: Fri Feb 03, 2006 12:52 am Post subject: |
|
|
 Novice
Joined: 09 Feb 2005 Posts: 12 Location: UK
|
Nikman,
It tried setting the BONameSize etc. to 0 on the FixedWith Datahandler MO, and it didn't work for me. I believe 'lehare' has tried this too.
Also, this wouldn't be relevant for the other MIME types (e.g. Named Pair, Delimited).
I've used the JText adapter quite a lot (but with BO/Verb supplied in data) and understand how the Connector and DataHandler work, but in the Datahandler Guide it is very vague on how/if it can handle my particular problem.
There's a 'one liner' about the fact that a connecter can provide them as parameters (but neither the DH or Connector documentation explains how that is done).
I'm interested to know if you've got a working version of this. |
|
Back to top |
|
 |
nikman |
Posted: Fri Feb 03, 2006 6:33 am Post subject: |
|
|
Newbie
Joined: 31 Jan 2006 Posts: 9
|
The standard Datahandler and JText MO wont work if you dont have BOName and Verb in the file, which is quite difficult for external systems to produce. So to overcome this, you will need to customise the datahandler code and DatahandlerMO a bit.
In the DatahandlerMO set the BONameSize, BOVerbSize to zero. Also add two new params DefaultBOName and DefaultBOVerb. These would specify the BOName and BOVerb generated by the datahandler.
In the DataHandler, edit the code in the getConfigOptions() to get the values of DefaultBOName and DefaultBOVerb in the datahandler. In the getBOFromString, when getNextToken is executed it will return null as the sizes of BOName and BOVerb are set to zero. Set the value of the relevant local variables to that of DefaultBOName and DefaultBOVerb.
This will allow the datahandler to return back the name of BO and Verb for further processing and the BOnameSize and BOVerSize will make sure that the BOName and BOVerb are not to be picked up from the file. Also adding the extra custom params in DatahandlerMO (DefaultBOName and DefaultBOVerb) will allow to isolate the datahandler from specific BOs.
This should do the trick for you. |
|
Back to top |
|
 |
lehare |
Posted: Thu Feb 09, 2006 5:53 am Post subject: |
|
|
 Apprentice
Joined: 25 Jul 2005 Posts: 48
|
i changed the code as per above guidelines ... it worked - but to a certain extend. the adapter still requires me to put ... CxIgnore<EndBO:MyBoName>
at the end of each record in my test file. - i thought the fields lengths alone should indicate end of record for the d**n adapter |
|
Back to top |
|
 |
lehare |
Posted: Thu Feb 09, 2006 6:17 am Post subject: |
|
|
 Apprentice
Joined: 25 Jul 2005 Posts: 48
|
figured it out ... i was NOT setting the EndOfBODelimiter in the MO_Default to EOF ... now its working fine
THANX GUYS  |
|
Back to top |
|
 |
greatmind |
Posted: Sun Mar 26, 2006 10:47 am Post subject: Data requirement for Standard Fixed Width DH |
|
|
Newbie
Joined: 06 Oct 2005 Posts: 2
|
Can anyone tell how will the input data for standard fixed width datahandler looks like.
My BO Name and Structure of BO is as follows:
Sample_Input_BO
Create
Stud_Name String 10
Reg_No String 5
Mark1 String 2
Mark2 String 2
Mark3 String 2
Thanks in advance
Greatmind. |
|
Back to top |
|
 |
|