Release Lease
  • 05 Jan 2023
  • 1 Minute to read
  • Dark
    Light

Release Lease

  • Dark
    Light

Article Summary

Step Details

Introduced in Version4.0.0
Last Modified in Version5.12.0
LocationDatabase > 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

PropertyDescriptionData Type
EntityThe leased entityObject
For How LongDefines how long to set the release TimeSpan
Lease IdThe lease of Id of the leased entity String
Release BehaviorDetermines what the release does with the entityReleaseLeaseBehavior


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?