acs_sc::contract::new (public)

 acs_sc::contract::new -name name -description description

Defined in packages/acs-service-contract/tcl/contract-procs.tcl

Procedure to call to define a new service contract and the message types, implementations and bindings. Refer to the Service contract Tcl API discussion at http://openacs.org/forums/message-view?message_id=71799

Switches:
-name
(required)
Name of the service contract
-description
(required)
Comment/description of the service contract
Returns:
id of the contract

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_sc_impl_new_from_spec acs_sc_impl_new_from_spec (test acs-service-contract) acs_sc::contract::new acs_sc::contract::new test_acs_sc_impl_new_from_spec->acs_sc::contract::new db_exec_plsql db_exec_plsql (public) acs_sc::contract::new->db_exec_plsql acs_sc::contract::new_from_spec acs_sc::contract::new_from_spec (public) acs_sc::contract::new_from_spec->acs_sc::contract::new

Testcases:
acs_sc_impl_new_from_spec
Source code:
    return [db_exec_plsql insert_sc_contract {}]
XQL Not present:
Generic
PostgreSQL XQL file:
<fullquery name="acs_sc::contract::new.insert_sc_contract">
    <querytext>
        select acs_sc_contract__new(
            :name, 
            :description
        ); 	
    </querytext>
</fullquery>
packages/acs-service-contract/tcl/contract-procs-postgresql.xql

Oracle XQL file:
<fullquery name="acs_sc::contract::new.insert_sc_contract">
    <querytext>
        begin
            :1 := acs_sc_contract.new(
                :name, 
                :description
            );
        end;
    </querytext>
</fullquery>
packages/acs-service-contract/tcl/contract-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: