|
Field
|
Value
|
|---|---|
|
Name
|
Name for the operation, for example, Shopping Operation.
|
|
Identifier
|
Unique identifier for the operation. Based on the Name field value.
|
|
Namespace
|
Namespace of the Max instance, for example, Development – dev.
|
|
Computer Language
|
Groovy
|
|
Class Name
|
com.maxservice.operation.ShoppingOperation
|
|
Method Name
|
execute
|

|
Field
|
Value
|
|---|---|
|
Name
|
Name for the parameter.
|
|
Identifier
|
Unique identifier for the parameter. Auto-populates based on value in Name field.
|
|
Related Operation
|
Operation to which the parameter is related, for example, Shopping Operation.
|
|
Parameter Datatype
|
Data type for the parameter, for example, String.
|
|
Parameter Value
|
Value for the parameter.
|
MaxObject item = Database.getByUUID('svmx_shopping_item', UUID.fromString('any-uuid-of-one-shopping-item-record'))
com.servicemax.core.Max.executeOperation("svmx_shopping_operation", [aparam :'avalue', iop_result: [object : item.entity]])
def customParams = params['iop_operation_parameters']
[
iop_operation_parameters:[operation_parameter1:hello world, operation_parameter2:100],
aparam:avalue,
.
.
]