setScriptContextValue script operation
Set the value of the variable named sVariableName. This is a way of defining a variable within a script but this must be used with caution. There are already a number of implicit system-defined variables and this script op should not be used to redefine any of these implicit variables. If an implicit variable is redefined the results may be unpredictable. Note that there are a number of implicit variables whose names start with a $ sign. This script op must not be used to define any variables whose name starts with a $ sign. Again, the results may be unpredictable if a variable whose name starts with a dollar sign is defined. The following is a list of the implicit variables (not including those whose name starts with a $ sign): all_itemset_fetch_linked_item, all_itemset_readonly, attribute_group, bypass_approval_workflow, catalog, category, category_tree, colArea, collaboration_area, container, destination_attribute, entry, entrynode, entrySet, err, err_lines, http_request, in, inputs, invoking_user, item, job, lkpTable, location, location_tree, locationRootEntryNode, logger, lookup_table, message, msg_attachments, multi_request, node, organization, organization_type, original_doc_folder, out, outs, page, page_layout, queueid, request, res run_rule_per_occurence, save_event, sequence, soapFaultCode, soapFaultMsg, soapIncomingAttachments, soapMessage, SoapOperationName, soapOutgoingAttachments, soapParams, spec, spec_map, special_outs, specmap_script_dest_attrib, step, stepPath, this, top, val, workflow, workIndex, workList, wrn.
Format: Procedural
Type: static
Syntax
void setScriptContextValue(String sVariableName, Object oVariableValue)
Parameters
| Type | Name | Description | Is required? | Is array? |
|---|---|---|---|---|
| String | sVariableName | The name of the script variable whose value is to be set. | true | false |
| Object | oVariableValue | The object which contains the new value. | true | false |
Return values
Return value: void
Is array: false