Create a contract in the database.
Syntax: CREATE CONTRACT contract [AUTHORIZATION owner ] ( {{message_type_name | [DEFAULT ] } SENT BY { INITIATOR | TARGET | ANY } } [ ,...n] ) [;] Key: contract Name of the contract owner Owner of the contract(database user or role) message_type_name Name of a message type to be included as part of the contract.
A contract must allow the initiator to send a message, the statement will fail if the contract does not contain at least one message type that is SENT BY ANY or SENT BY INITIATOR.
CREATE CONTRACT [//windevcluster.com/Sales/ContractSale] ( [//windevcluster.com/Sales/SubmitOrder] SENT BY INITIATOR, [//windevcluster.com/Sales/ApproveOrder] SENT BY TARGET ) ;
"Love seems the swiftest, but it is the slowest of growths. No man or woman really knows what perfect love is until they have been married a quarter of a century” ~ Mark Twain