DAML-S
precondition
and
effect
(yes, like AI planner operators. 1970's
AI research might yet find an application :-).CongoBuy
service has two preconditions:
you must have an account and credit
<rdf:Property rdf:ID="congoBuyAcctExistsPrecondition"> <rdfs:subPropertyOf rdf:resource="&process;#precondition"/> <rdfs:domain rdf:resource="#CongoBuy"/> <rdfs:range rdf:resource="#AcctExists"/> </rdf:Property> <rdf:Property rdf:ID="congoBuyCreditExistsPrecondition"> <rdfs:subPropertyOf rdf:resource="&process;#precondition"/> <rdfs:domain rdf:resource="#CongoBuy"/> <rdfs:range rdf:resource="#CreditExists"/> </rdf:Property>
CongoBuy
has an effect of either shipping
the order or failure: <daml:Class rdf:ID="BuyEffectType"> <daml:oneOf rdf:parseType="daml:collection"> <BuyEffectType rdf:ID ="OrderShipped"/> <BuyEffectType rdf:ID ="Failure"/> </daml:oneOf> </daml:Class> <rdf:Property rdf:ID="congoBuyEffect"> <rdfs:subPropertyOf rdf:resource="&process;#effect"/> <rdfs:domain rdf:resource="#CongoBuy"/> <rdfs:range rdf:resource="#BuyEffectType"/> </rdf:Property>
18 of 26