# getCurrentValueFromSequence
State Resource
This is a State Resource as provided by the tymly-pg-plugin plugin.
# Purpose
Gets the current value from the specified sequence, returning it as the value of the value property
# Usage
# Example
{
"GetCurrentValueFromSequence": {
"Type": "Task",
"Resource": "module:getCurrentValueFromSequence",
"ResourceConfig": {
"namespace": "wmfs",
"id": "tempUprn",
"prefix": "FSC"
},
"ResultSelector": {
"uprn.$": "$.value"
},
"Next": "Create"
}
}
# Options
# Required properties
# namespace
This is the name of the namespace in which the sequence exists.
- Type:
string
# id
This is the id of a sequence from which the current value will be fetched.
- Type:
string
# Optional properties
# prefix
This setting allows you to specify a value which will be prepended to the returned value.
- Type:
string