Skip to main content

ocl@0.2.1

Adaptor

Adaptor.execute(operations) ⇒ Operation

Execute a sequence of operations. Wraps language-common/execute, and prepends initial state for http.

Kind: static method of Adaptor

ParamTypeDescription
operationsOperationsOperations to be performed.

Example

execute(
create('foo'),
delete('bar')
)(state)

Adaptor.map(state, [params]) ⇒ Operation

Replaces source keys(data elements) to destination keys(data elements) with out changing state.data structure

Kind: static method of Adaptor
Access: public

ParamTypeDescription
stateObjectJson object containing keys and data values;
[params]ObjectE.g. `{users:"haftamuk", sources: "eCHIS-CODES", concepts: "fp_new_at_10_to_14" }

Example

mapp(state, state)

map~retrievedMapping

In order to minimize web trafic, already accessed mapping information is put into this variable to reuse values for the consucutive keys.

Kind: inner constant of map

Adaptor~auth

Do we have a mechanism to retrieve those from configuration

Kind: inner property of Adaptor

Adaptor~params

Specify query parameters that may include OCL Data Source, MappingType, includion and exclusion values

Kind: inner property of Adaptor