Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Description

Workflow level

Account level

Writes key and value into myVault dictionary

set

setGlobal

Writes key and value into myVault dictionary on the workflow complete event

setOnComplete

setGlobalOnComplete

Reads value from myVault dictionary by specified key

get

getGlobal

Removes key-value pair from myVault dictionary by specified key

remove

removeGlobal

Determines whether the myVault dictionary contains the specified key

contains

containsGlobal

set

Writes key and value into myVault dictionary belonged to the workflow.

...

Expand
titleexample #3
Code Block
let keys =  [1, 2, 3, 4, 5];
let value = fx.utcNow();
await fx.forEach(keys, async(key)=> { 
    await myVault.set(key, value); 
});

setGlobal

Writes key and value into Global myVault dictionary belonged to the account.

...

Expand
titleexample #3
Code Block
let keys =  [1, 2, 3, 4, 5];
let value = fx.utcNow();
await fx.forEach(keys, async(key) => { 
    await myVault.setGlobal(key, value); 
});

setOnComplete

Writes key and value into myVault dictionary belonged to the workflow.

This method differs from set method in “saving into myVault is deferred” condition and will be executed on workflow complete event.

Parameters

key-the key of the element to set.

...

Expand
titleexample #3
Code Block
let keys =  [1, 2, 3, 4, 5];
let value = fx.utcNow();
await fx.forEach(keys, async(key) => { 
    await myVault.setOnComplete(key, value); 
});

Please also see session.vault by this link

Please see conditionas for “Workflow complete“ by this link

setGlobalOnComplete

Writes key and value into Global myVault dictionary belonged to the account.

This method differs from setGlobal method in “saving into Global myVault is deferred” condition and will be executed on workflow complete event.

Parameters

key-the key of the element to set.

...

Expand
titleexample #3
Code Block
let keys =  [1, 2, 3, 4, 5];
let value = fx.utcNow();
await fx.forEach(keys, async(key) => { 
    await myVault.setGlobalOnComplete(key, value); 
});

\uD83D\uDCCB Related articles

Please also see session.vaultGlobal by this link

Please see conditionas for “Workflow complete“ by this link

get

Reads value from myVault dictionary by specified key.

...

Expand
titleexample #3
Code Block
let keys =  [1, 2, 3, 4, 5];
let values = [];
await fx.forEach(keys, async(key) => { 
    values.push(await myVault.get(key)); 
});

getGlobal

Reads value from Global myVault dictionary by specified key.

...

Expand
titleexample #3
Code Block
let keys =  [1, 2, 3, 4, 5];
let values = [];
await fx.forEach(keys, async(key) => { 
    values.push(await myVault.getGlobal(key)); 
});

remove

Removes key-value pair from myVault dictionary by specified key.

...

Expand
titleexample #3
Code Block
let keys =  [1, 2, 3, 4, 5];
await fx.forEach(keys, async(key) => {
    await myVault.remove(key); 
});

removeGlobal

Removes key-value pair from Global myVault dictionary by specified key.

...

Expand
titleexample #3
Code Block
let keys =  [1, 2, 3, 4, 5];
await fx.forEach(keys, async(key) => {
    await myVault.removeGlobal(key); 
});

contains

Determines whether the myVault dictionary contains the specified key

...

Expand
titleexample #3
Code Block
let keys =  [1, 2, 3, 4, 5, 6, 7, 8, 9];
keys = await fx.filter(keys, async(key) => { 
    return await myVault.contains(key); 
});

containsGlobal

Determines whether Global myVault dictionary contains the specified key

...

Please see also Response by this link

dateLastRun

dateLastRun is a global workflow property which can be used in js-code. The property value is a date and time when a workflow was processed successfully last time. If workflow is a new and has not been run before, then property value is NULL.

You can see the value of workflow dateLastRun on the Workflow list page or read this value in js-code.

...

There is a list of cases when dataLastRun is updated:

...

You can know how to start workflow running by this link

You can know how to stop workflow running by this link

session

This page documents session object which is shared between all blocks in the workflow and contains following properties:

...