Re: Filter Exression not working when using Property schema
by "Yossi Dahan [MVP]" <yossi.dahan@[EMAIL PROTECTED]
>
Apr 6, 2008 at 07:57 AM
Most likley reason is that your property is not promoted.
check the context of the message in the suspended instance - does it say
'Promoted' next to your property in the message's context?
To promote the property you will need to define a correlation type that
uses
it, a correlation set of that type in your orchestration and initialise
that
in the send shape where the response is published.
--
Yossi Dahan [MVP]
www.sabratech.co.uk/blogs/yossidahan
"Prakg" <Prakg@[EMAIL PROTECTED]
> wrote in message
news:467B273B-0727-46C9-87D2-0AA12FD57964@[EMAIL PROTECTED]
> Hi,
>
> The scenario of the problem is that there are 2 orchestration, one is
main
> orchestration and other is service provider orchestration. The design is
> like
> that main orchestration submits a control message in Message Box and
> Service
> Provider Orchestration picks the message from message box and process
it.
> Now
> as there are more then one service provider orchestration I want to add
a
> filter expression at the receive shape of Service provider orch. To
create
> a
> filter expression I created new property schema and add a new element
> ServiceID in it and then set the "Property Schema base" as
> MessageContextPropertyBase. I promoted this property in Main
orchestration
> using
> myMessage(MyProject.MyPropertySchema.ServiceID) = "1"
> before submitting myMessage to message box. Adding to this I also added
> the
> MyPropertySchema in list on Property schema list of MyMessage.
> Now I added the filter expression in Receive shape of Service Provider
> orchestration on the basis of ServiceID.
> Now when i run this application i get the error "Exception occurred when
> persisting state to the database." I think this is because
ServiceProvider
> orchestration is not able to pick the myMessage submitted by Main
> orchestration.
>
> Can anyone please help me on this......................
>
> Thanks in advance