Skip to content

Commit 7e4a9e8

Browse files
5amfungSam Fung
andauthored
Rename to on-device decisioning (#3)
Co-authored-by: Sam Fung <[email protected]>
1 parent 44e9830 commit 7e4a9e8

14 files changed

+18
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ when the test is started on the server side and then it is handed off to at.js o
2828
Node.js SDK API calls when processing a client request, sharing the same ECID instance.
2929
- [multiple-mbox-ecid-analytics-atjs-integration](multiple-mbox-ecid-analytics-atjs-integration) - shows how Target
3030
Node.js SDK can be used to request content for multiple mboxes in the same Target call.
31-
- [local-execution](local-execution) - shows how Target Node.js SDK can be used in local execution mode
31+
- [on-device-decisioning](on-device-decisioning) - shows how Target Node.js SDK can be used in on-device decisioning method
3232
- [feature-flag](feature-flag) - shows how Target Node.js SDK can be easily used for feature flags
3333

3434
For Target Node.js SDK documentation, see [Target Node.js SDK NPM page](https://www.npmjs.com/package/@adobe/target-nodejs-sdk).

feature-flag/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ And the `asObject` method is used to get a plain old JSON representation of the
8686

8787
```
8888

89-
Note: This sample uses local execution mode. But the `getAttributes` method can be used in any execution mode.
89+
Note: This sample uses on-device decisioning method. But the `getAttributes` method can be used in any decisioning method.

feature-flag/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

feature-flag/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "target-local-execution",
2+
"name": "target-on-device-decisioning",
33
"version": "1.0.0",
4-
"description": "Adobe Target Node.js SDK, target local execution sample",
4+
"description": "Adobe Target Node.js SDK, target on-device decisioning sample",
55
"main": "index.js",
66
"scripts": {
77
"start": "node server.js"
@@ -20,7 +20,7 @@
2020
"ECID",
2121
"Visitor",
2222
"Delivery",
23-
"target-local-execution"
23+
"target-on-device-decisioning"
2424
],
2525
"author": "Adobe Systems Inc.",
2626
"license": "Apache-2.0",

feature-flag/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Handlebars = require("handlebars");
1818
const TargetClient = require("@adobe/target-nodejs-sdk");
1919
const { getSearchProvider } = require("./provider");
2020

21-
const PAGE_TITLE = "Target Local Sample";
21+
const PAGE_TITLE = "Target On-Device Decisioning Sample";
2222
// Load the template of the HTML page returned in the response
2323
const TEMPLATE = fs.readFileSync(`${__dirname}/index.handlebars`).toString();
2424
const handlebarsTemplate = Handlebars.compile(TEMPLATE);
@@ -70,7 +70,7 @@ function sendErrorResponse(res, error) {
7070
const CONFIG = {
7171
client: "adobesummit2018",
7272
organizationId: "65453EA95A70434F0A495D34@AdobeOrg",
73-
executionMode: "local",
73+
decisioningMethod: "on-device",
7474
artifactPayload: require("./sampleRules"),
7575
events: {
7676
clientReady: startExpressApp

local-execution/README.md renamed to on-device-decisioning/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Target Local execution sample
1+
# Target on-device decisioning sample
22

33
## Overview
44

@@ -22,7 +22,7 @@ For this sample, we first created a simple AB activity for the `demo-marketing-o
2222

2323
As you can see, each experience has a different filename set in the `asset` property.
2424

25-
When run, the app server makes a getOffers call, requesting the `demo-marketing-offer1` mbox. But the SDK has been configured to use local execution mode to determine the outcome of the call rather than send a request to the target delivery API.
25+
When run, the app server makes a getOffers call, requesting the `demo-marketing-offer1` mbox. But the SDK has been configured to use on-device decisioning method to determine the outcome of the call rather than send a request to the target delivery API.
2626

2727
When the page is loaded in a browser, an image is shown at the top of the page. This image comes from one of the two experiences in the activity defined above. The target response is also shown on the page.
2828

@@ -34,22 +34,22 @@ When the page is loaded in a browser, an image is shown at the top of the page.
3434

3535
## How it works
3636

37-
This sample utilizes local execution mode to determine target experiences. By default, the SDK always makes a request to the target delivery API for each `getOffers` call. But you can configure the SDK to use local execution mode instead. This mode downloads target activity rules on initialization. The rules are then used to determine which experiences to return when `getOffers` is called, rather than make a request to the delivery API each time.
37+
This sample utilizes on-device decisioning method to determine target experiences. By default, the SDK always makes a request to the target delivery API for each `getOffers` call. But you can configure the SDK to use on-device decisioning method instead. This mode downloads target activity rules on initialization. The rules are then used to determine which experiences to return when `getOffers` is called, rather than make a request to the delivery API each time.
3838

39-
There are four main properties to keep in mind when using local execution mode:
39+
There are four main properties to keep in mind when using on-device decisioning method:
4040

4141
| Name | Description |
4242
|---------------------------|-------------------------------------------------------------------------------------|
43-
| executionMode | The execution mode the SDK will run in. Can be `local`, `remote`, or `hybrid`. Defaults to `remote` |
43+
| decisioningMethod | The decisioning method the SDK will run in. Can be `on-device`, `server-side`, or `hybrid`. Defaults to `server-side` |
4444
| artifactLocation | This is a fully qualified url to the rules definition file that will be used to determine outcomes locally. |
4545
| artifactPayload | A target decisioning JSON artifact. If specified, it is used instead of requesting one from a URL. |
4646
| events | Object.<String, Function> | No | None | An optional object with event name keys and callback function values. |
4747

48-
NOTE: You must specify an `artifactLocation` or `artifactPayload` during the alpha release for local execution mode to work.
48+
NOTE: You must specify an `artifactLocation` or `artifactPayload` during the alpha release for on-device decisioning method to work.
4949

5050
```js
5151
const CONFIG = {
52-
executionMode: "local",
52+
decisioningMethod: "on-device",
5353
artifactPayload: require("sampleRules"),
5454
events: { clientReady: targetReady }
5555
};

local-execution/package.json renamed to on-device-decisioning/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"ECID",
2121
"Visitor",
2222
"Delivery",
23-
"target-local-execution"
23+
"target-on-device-decisioning"
2424
],
2525
"author": "Adobe Systems Inc.",
2626
"license": "Apache-2.0",

0 commit comments

Comments
 (0)