导航

Context Property与Orchestration订阅filter

Posted on 2007-04-10 16:29  鸡尾虾的壳  阅读(375)  评论(0编辑  收藏  举报

1.Context Property Value存在
      场景:MessageDataPropertyBase类型的Context Property在Message中存在。
      结果:将会产生两个Suspend Service实例
             实例1
                 Service Class:Message,
                 Suspended Type:resumable
                 MessageType:string.Empty
             实例2
                 Service Class:Routing Failure Report
                 Suspended Type:not resumable
                 MessageType:Namespace#RootName
2.Context Property Value不存在
       场景:MessageDataPropertyBase类型的Context Property在Message中不存在(field为optional) 或MessageContextPropertyBase类型的Context Property没有被Promote.
       结果:将会产生两个Suspend Service实例
       实例1
               Service Class:Message,
               Suspended Type:resumable
               MessageType:string.Empty
               Error Info:The published message could not be routed because no subscribers were found.Message properties necessary for subscription evaluation have not been promoted
      实例2
              Service Class:Routing Failure Report
              Suspended Type:not resumable
              MessageType:Namespace#RootName
              Error Info:The context of the message associated with this instance contains all the promoted properties at the time of the routing failure
3.
       MessageContextPropertyBase类型的Context Property名称引用规则:Property XSD的NameSpace属性值+PropertyName
      Property Schema中的MessageDataPropertyBase类型的field,如果不存在Document XSD中的field相关联,那么这些field不会出现在Active Receive Shape的Filter属性列表中 
      Receive Shape的filter value值与Send Port的filter值之间的一个区别是:前者的输入值需要加引号。
4.
      在receive pipeline中必须包含promote msgtype属性的component,这样Orchestration才有可能正确的订阅消息。
      在receive pipeline中重复promote MessageContextPropertyBase类型的同一个property,那么最后一次的值将覆盖前面的值。
      在receive pipeline中被promote的属性都必须存在对应的Property Schema支撑(System的或者开发者自定义的),否则将出现“Loading property information list by namespace failed or property not found in the list. Verify that the schema is deployed properly"的异常信息。