Release Lease
- 05 Jan 2023
- 1 Minute to read
- Print
- DarkLight
Release Lease
- Updated on 05 Jan 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Step Details | |
Introduced in Version | 4.0.0 |
Last Modified in Version | 5.12.0 |
Location | Database > Leasing |
The Release Lease step frees up the specified leased Entity according to the lease's ID thus allowing the entity to be used in another process thread. This release may be permanent or for a specified time according to the For How Long input. Furthermore, the Release Behavior Input configures release to either delete, logically delete, or unlease the Entity.
Properties
Inputs
Property | Description | Data Type |
---|---|---|
Entity | The leased entity | Object |
For How Long | Defines how long to set the release | TimeSpan |
Lease Id | The lease of Id of the leased entity | String |
Release Behavior | Determines what the release does with the entity | ReleaseLeaseBehavior |
Common Errors
Object reference not set to an instance of an object
If the Entity and/or Lease Id is not mapped correctly, an error will occur.
To correct this, ensure that the Entity and/or Lease Id is mapped correctly.
Exception Message:
Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Release Lease 1[ReleaseLease] in flow [Example]: Exception invoking method ReleaseLease on class LeaseEntitySteps
---> DecisionsFramework.LoggedException: Exception invoking method ReleaseLease on class LeaseEntitySteps
---> System.NullReferenceException: Object reference not set to an instance of an object. at DecisionsFramework.ServiceLayer.LeaseEntitySteps.ReleaseLease(Object entity, String leaseId, TimeSpan forHowLong, ReleaseLeaseBehavior releaseBehavior)
--- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data
at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData
at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
--- End of inner exception stack trace ---
Was this article helpful?