Forum Replies Created
-
AuthorPosts
-
1) Thanks for your reply. Process 2 updates the record with some info that is not provided during process 1, hence giving two states. State1 record created but infoA is not yet provided. State2: record is created and infoA is provided. To have the 2 processes being handled by the same orchestration process (I think it’s called a sequencial process or something simular) the second receive message needs to be correlated to the a send message of process 1.
2) I’ll try creating the correlation again posting back the results. FYI: The correlation property is associated to the OrganizationNumber AND Name from the referenced webservice-schema.
October 21, 2005 at 3:57 PM in reply to: Setting a variable in the Rec. Pipeline for use in an Orch. #12087I’m still doing something wrong.
I created a distinguished field inside my Disassemble custom pipeline, within the Probe method.
[code:1:6dcccc6188]public bool Probe(pContext, pInMsg) {
…
pInMsg.Context.Write(\"CallChainID\", namespace, System.Guid.NewGuid());
…
}[/code:1:6dcccc6188]Then within my Orchestration I try to reference the distinguished variable
[code:1:6dcccc6188]msgTimeLoadXML.CallChainID[/code:1:6dcccc6188]But, it says that [quote:6dcccc6188]identifier \”CallChainID\” does not exist in \”msgTimeLoadXML\”; are you missing an assembly reference?[/quote:6dcccc6188]
What am I doing wrong?
Thanks
Scott
Hello.
I think you might want to look at using Orchestration exposed as Web Services. This way, you can get a synchronous response from your call.
Biztalk will generate a web service front end based on your Input and Return schema. It sounds like that would work better for you.
Using the file adapter, you would need some type of correction and that would get messy.
Hope this helps.
October 20, 2005 at 9:19 PM in reply to: Setting a variable in the Rec. Pipeline for use in an Orch. #12090I should have said that once your guid is in the message context, you will access it by using msg(yourpropname) in an expression shape. You will need to create a property schema that defines your property.
October 20, 2005 at 9:16 PM in reply to: Setting a variable in the Rec. Pipeline for use in an Orch. #12089Yes, you can simply write this guid to the message context using the Write method. If you need to route on it, you would ensure it is promoted.
Apart from a map, are you able to validate an instance document against your flat file schema ?
Hi thanks for your reply. Yes, I’m sure it’s < > chars that are causing the issue. If I take them out or make sure they are equal in pairs then no problem, if unequal I get the following error when I try to test the Map:
\”Invoking component…
C:\\DOCUME~1\\aknott\\LOCALS~1\\Temp\\mapTLogDataToStorescanData_output.xml: error btm1048: Native serialization error: There is an unclosed literal string. Line 1, position 266.
E:\\Documents and Settings\\aknott\\My Documents\\Storescan\\Biztalk\\TLogData_To_Storescan\\TLogData_To_Storescan\\mapTLogDataToStorescanData.btm: error btm1054: Test Map failure for map file <file:///E:\\Documents and Settings\\aknott\\My Documents\\Storescan\\Biztalk\\TLogData_To_Storescan\\TLogData_To_Storescan\\mapTLogDataToStorescanData.btm>.
Component invocation succeeded. \”The problem is that my data will most certainly have unequal numbers of < > chars.
I have been trying to set the CDATA setting in the Map properties but this doesn’t seem to work either!!
Any ideas??Hmmm – I haven’t tried this, but I’d be extremely surprised if the flat file disassembler didn’t provide escaping of all xml characters it found in a flat file data stream. Are you sure the presence of < > is really the issue ? What is the error your are getting ?
A couple of thoughts –
1) Is correlation really necessary in this case? Is there state that needs to be preserved across the calls?
2) When you associated the correlation property with ‘com.domainname.project.portal.schemas.OrganizationNumber’ did everything seem to work? (Does this property occur just once in the schema? Is it of a datatype that biztalk is happy with? etc.)
You can use the \”Index\” functiod from the \”Advanced functiods\” to take the desired instance (In your case the index would be \”1\”) and map it.
Hello.
I have not worked with BAS at all but I think it is just a front end to Parties and Roles.
If so, the Names for the parties are not limited to the pre-defined list. You can just type in your own value.
Qualifiers. If you select a Name of the list, the Qualifier should be populated for you.
If you create a custom name, like Foo, you can get the qualifier to anything you like, Foo2In the past, we used qualifiers to route message inside the Orchestration to a Party.
Hope this helps.
Hello.
I’m assuming the records will always be in order and it is either 1 record or two.
In the past, we use the code below to compare the current value with the past value. It would return true (for them being the same) or false (if different).
You can use a scripting functoid with code like this to return true or false:
string sPastValue = \”\”;
string bReturn = \”\”;public string M1(string param1)
{
if (sPastValue!= param1)
{
sPastValue = param1;
bReturn = \”true\”;
}
else
bReturn = \”false\”;return bReturn;
}
This will let you know what type of mapping you need for the record. Then you can use conditional logic to map or add as needed. For the addition, I might try to use the Index functoid along with a counter in the above script to extract out the two values to add together.
Another option would be to use pure custom XSLT. I would think this would be doing using position() and position()-1 to check values and add them.
I would start in this order and work piece by piece:
Map the whole record as normal using the mapper using a looping functoid
Get the 6 replaced with a 4 on the correct row by using conditional logic
Get the sum to workMapper logic is hard to explain in a message and I find playing around with it is something the best way to figure it out.
Hope this helps.
thanks for the info
Yes, that is correct.
When you build the Orchestration it will build to a specific version. This allows for multiple versions of the same assembly to be in the GAC (a.k.a. side by side versioning).
Are you changing your version on purpose?
If not, one simple thing to change is make the version of the .net component static. In the AssemblyInfo file, change the version from 1.0.* to 1.0.0.0. Then, when you build it you keep your same version number and do not need to rebuild the Orchestration. You just need to re-GAC the .net component and restart the hosts.
Hope this helps.
Thanks,
What you said didn’t exactly work but it got me going in the right direction. I ended up using a looping function with the two input params (Value1 and Value2) and the output going to the Detail node. then I mapped Value2 and Value2 to the Value node and the Number straight across.
-
AuthorPosts