The same JavaScript binds are available for all business rules, using the functionality exposed in the public Java API. JavaScript in a business rule will have access to the standard Java packages. A connection into the STEP Java API can be created via binds where Java objects are bound to JavaScript variables. For more information, click the STEP API Documentation button on the Start Page, and see the Javadoc link under the Extension API section.
The following documentation addresses the binds, regardless of their use. For steps required to add a JavaScript bind, see Adding a Bind here.
The Global Binds available in Matching Algorithms are different from business rule JavaScript binds. For more information about matching algorithm binds, see the Configuring Match Codes section of the Matching, Linking, and Merging documentation here.
Important: STEP data should only be changed via an Execute JavaScript business action. Changing STEP data via an Evaluate JavaScript business condition is not supported. See the JavaScript Considerations topic for more info and suggested uses here.
The STEP Scripting Java API binds are available in the groupings listed below. The top-level options are shown with a light gray background.
|
Bind |
Resolves to |
|---|---|
|
Current Object (here) |
Instance of com.stibo.core.domain.Node and the sub interface for the type that the business rule is evaluated / executed against. E.g. com.stibo.core.domain.Product or com.stibo.core.domain.entity.Entity. |
|
STEP Manager (here) |
Instance of com.stibo.core.domain.Manager. |
|
Logger (here) |
Instance of java.util.logging.Logger. |
|
Approval |
|
|
Approve Context (here) |
For business actions, instance of com.stibo.core.domain.spi.approve.ApproveTrigger.ApproveTriggerContext and the type specific sub interface (e.g. com.stibo.core.domain.spi.approve.ApproveProductTrigger.ApproveProductTriggerContext). For business conditions, instance of com.stibo.core.domain.spi.approve.ApprovePlugin.ApproveContext. |
|
Assets |
|
|
Asset Analyzer Home (here) |
Instance of com.stibo.assetanalyzer.domain.home |
|
Asset Download Home (here) |
Instance of com.stibo.assetdownload.domain.home |
|
Audit Messaging Framework (here) |
|
|
Audit Message Home |
Instance of com.stibo.auditmessaging.domain.home |
|
Audit Message Topic |
Instance of com.stibo.auditmessaging.domain.home |
|
Configuration |
|
|
Asset Importer Configuration (here) |
com.stibo.assetimporter.domain.configuration.AssetImportConfiguration. |
|
Attribute (here) |
Instance of com.stibo.core.domain.Attribute for the selected attribute. |
|
Attribute Group (here) |
Instance of com.stibo.core.domain.AttributeGroup for the selected attribute group. |
|
Business Function (here) |
Instance of com.stibo.core.domain.businessrule.businessfunction.BusinessFunction for the selected business function. |
|
Classification Product Link Type (here) |
com.stibo.core.domain.ClassificationProductLinkType |
|
Gateway Integration Endpoint (here) |
Instance of com.stibo.gateway.rest.REST given that the selected gateway integration endpoint is REST based (the only option). |
|
List of Values (here) |
Instance of com.stibo.core.domain.ListOfValues for the selected list of values. |
|
Object Type (here) |
com.stibo.core.domain.ObjectType |
|
Reference Type (here) |
Instance of com.stibo.core.domain.ReferenceType for the selected reference type. |
|
Unit (here) |
Instance of com.stibo.core.domain.Unit for the selected unit. |
|
Unit Group (here) |
Instance of com.stibo.core.domain.UnitGroup for selected unit group. |
|
User |
Instance of com.stibo.core.domain.User for the selected user. |
|
User Group |
Instance of com.stibo.core.domain.Group for the selected user group. |
|
Current Email (here) |
com.stibo.experian.domain.Email |
|
Data Objects
|
|
|
Asset |
Instance of com.stibo.core.domain.Asset for the selected asset. |
|
Classification |
Instance of com.stibo.core.domain.Classification for the selected classification. |
|
Entity |
Instance of com.stibo.core.domain.entity.Entity for the selected entity. |
|
Product |
Instance of com.stibo.core.domain.Product for the selected product. |
|
e-Signature |
|
|
Basic e-Signature (here) |
Instance of com.stibo.basicesignature.domain.BasicEsignature. |
|
Event Handling
|
|
|
Current Event Batch |
Instance of com.stibo.outbound.businessactionpreprocessor.EventBatch. |
|
Current Event Queue |
Instance of com.stibo.core.domain.eventqueue.EventQueue. |
|
Current Event Type |
Instance of com.stibo.core.domain.eventqueue.SimpleEventType. Can be a derived event type (com.stibo.core.domain.eventqueue.DerivedEventType) or a basic (core) event type (com.stibo.core.domain.eventqueue.BasicEventType). |
|
Derived Event Type |
Instance of com.stibo.core.domain.eventqueue.DerivedEventType for the selected derived event type. |
|
Event Queue |
Instance of com.stibo.core.domain.eventqueue.EventQueue for the selected event queue, outbound integration endpoint or event processor. |
|
GDSN
|
|
|
GDSN Product |
Instance of com.stibo.gdsn2.domain.model.GDSNProduct. |
|
GDSN Provider Datapool |
Instance of com.stibo.gdsn2.domain.model.configuration.GDSNProviderDatapool. |
|
GDSN Provider Message Exception Description |
java.lang.String. |
|
GDSN Provider Message Exception File |
java.io.File |
|
GDSN Provider Message Original File |
java.io.File |
|
GDSN Provider Original Node |
Instance of com.stibo.core.domain.Node |
|
GDSN Publisher Data Map |
Instance of com.stibo.gdsn2.domain.datamap.GDSNDataMap. |
|
GDSN Publisher Product Validation |
Instance of com.stibo.gdsn2.domain.impl.businessrules.GDSNValidationContext @Deprecated. |
|
GDSN Receiver Data Map |
Instance of com.stibo.gdsn2.receiver.domain.impl.businessactioncontext.GDSNReceiverDataMapContext. |
|
GDSN Receiver Message Exception Description |
java.lang.String. |
|
GDSN Receiver Message Exception File |
java.io.File. |
|
GDSN Receiver Message Original File |
java.io.File. |
|
GDSN Receiver Original Node |
Instance of com.stibo.core.domain.Node. |
|
GDSN Receiver Packaging Product |
Instance of com.stibo.core.domain.Node. |
|
GDSN Receiver REST CIC Status |
An implementation of GDSNReceiverRestCICContext |
|
GDSN Recipient |
Instance of com.stibo.gdsn2.domain.model.configuration.GDSNRecipient. |
|
GDSN Target Market |
Instance of com.stibo.gdsn2.domain.model.configuration.GDSNTargetMarket. |
|
GDSN Validation Logger |
com.stibo.gdsn2.domain.validationlogger |
|
Import |
|
|
Import Change Info (here) |
Instance of com.stibo.core.domain.importer.changeinfo.ImportChangeInfo. |
|
Inbound Business Rule Based Message Processor |
|
|
Execution Report Logger (here) |
com.stibo.integrationendpoint.businessactionprocessor.inbound.domain.bind.common.InboundBusinessProcessorExecutionReportLogger |
|
Importer Source (here) |
com.stibo.integrationendpoint.businessactionprocessor.inbound.domain.bind.importer.InboundBusinessProcessorImporterSource |
|
Splitter Result (here) |
com.stibo.integrationendpoint.businessactionprocessor.inbound.domain.bind.splitter.InboundBusinessProcessorSplitterResult |
|
Splitter Source (here) |
com.stibo.integrationendpoint.businessactionprocessor.inbound.domain.bind.splitter.InboundBusinessProcessorSplitterSource |
|
Matching |
|
|
First Match Object (here) |
either com.stibo.core.domain.Product or com.stibo.core.domain.entity.Entity |
|
Match Expression Context (here) |
com.stibo.matching.domain.matchexpression.MatchExpressionContext |
|
Matching Functions (here) |
com.stibo.matching.domain.javascript.MatchingFunctionsContext |
|
Pair Of Attribute Values (here) |
Instance of com.stibo.core.domain.value.simplevaluepair.SimpleValuePair. |
|
Party Data Matching |
com.stibo.partydatamatching.domain.home.PartyDataMatchingHome |
|
Second Match Object (here) |
either com.stibo.core.domain.Product or com.stibo.core.domain.entity.Entity |
|
Secondary Object (here) |
Instance of either com.stibo.core.domain.Product or com.stibo.core.domain.entity.Entity. |
|
Survivorship Rule Source Objects (here) |
java.util.Set<com.stibo.core.domain.entity.Entity> |
|
MongoDB
|
|
|
JSON Document |
A JSON object for the document that has been stored in the MongoDB database. |
|
MongoDB Context |
Instance of com.stibo.components.mongodbadapter.server.MongoDBActionContext. |
|
Other
|
|
|
Attribute Validated Parameter |
User input as java.lang.String. |
|
Attribute Value |
java.lang.String value for the selected attribute. |
|
Conditionally Invalid Values |
java.util.Set<com.stibo.core.domain.Value> |
|
Current Data Container Object |
Instance of com.stibo.core.domain.datacontainerobject.DataContainerObject. |
|
ID |
ID of the com.stibo.core.domain.Node that the business rule is evaluated / executed against as a java.lang.String. |
|
Lookup Table Home |
com.stibo.lookuptable.domain.LookupTableHome. |
|
Mail Home |
com.stibo.mail.home.MailHome. |
|
Name |
Name of the com.stibo.core.domain.Node that the business rule is evaluated / executed against as a java.lang.String. |
|
Web UI Context here |
Instance of com.stibo.webui.bindaction.server.context.WebUiContext |
|
Outbound Business Rule Base Message Processor (here) |
|
|
Execution Report Logger |
com.stibo.integrationendpoint.businessactionprocessor.outbound.domain.bind.common.OutboundBusinessProcessorExecutionReportLogger |
|
Joiner Result |
com.stibo.integrationendpoint.businessactionprocessor.outbound.domain.bind.joiner.OutboundBusinessProcessorJoinerResult |
|
Joiner Source |
com.stibo.integrationendpoint.businessactionprocessor.outbound.domain.bind.joiner.OutboundBusinessProcessorJoinerSource |
|
Node Handler Result |
com.stibo.integrationendpoint.businessactionprocessor.outbound.domain.bind.nodehandler.OutboundBusinessProcessorNodeHandlerResult |
|
Node Handler Source |
com.stibo.integrationendpoint.businessactionprocessor.outbound.domain.bind.nodehandler.OutboundBusinessProcessorNodeHandlerSource |
|
Query |
|
|
Query Home (here) |
com.stibo.query.home.QueryHome |
|
Workflow
|
|
|
Current Transition |
Instance of com.stibo.core.domain.state.currenttransition.CurrentTransition. |
|
Current Workflow |
Instance of com.stibo.core.domain.state.Workflow. |
|
Workflow Parameters |
Map<java.lang.String, java.lang.String> |
|
Workflow State |
Instance of com.stibo.core.domain.state.State. |
The Global Binds available in Matching Algorithms are different from business rule JavaScript binds. For more information about matching algorithm binds, see the Configuring Match Codes section of the Matching, Linking, and Merging documentation here.
2019, Stibo Systems – Confidential