Skip to main content
Skip table of contents

Removing Stored Data

Using the Memory adapter, you can remove data elements from memory that have been stored to a dedicated key, or you can wipe the complete memory used by the service.

Removing Stored Data

Using the remove operation from the Memory adapter, you can remove data elements from memory that have been stored to a dedicated key. Provide the following parameters:

Name

Type

Direction

Description

key

String

in

Provide the key of the value that has been stored to memory with store. If no value with this key can be found, the Memory adapter throws error MEMADSM/12.

Parameter oldValue returns the value that has been removed. If no data with the given key can be found, the Memory adapter throws an error (MEMADSM/12, see also the list of system errors).

Name

Type

Direction

Description

oldValue

Any

out

Returns the value of the memory item that has been removed. In case value contains a hash map, oldValue returns the complete previously stored hash map.

Related Error Codes

Find a list of all persistent state error codes on System Errors of the Memory Adapter.

Error Code

Description

MEMADSM/12

The message is not stored here.

Clearing the Memory

Using the clear operation from the Memory adapter, you can you can wipe the complete memory used by the service. This operation has no parameters.

MemoryAdapter_GuessingGame_Example

Click here to download a simple example model that shows the usage of the Memory adapter in Scheer PAS Designer.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.