Acquires a lock for a Scheduled Import based on the lock settings in that Import. A separate BIC was created to isolate the lock requests from the maximum threads used by some of the activities after the lock (Universal Java BIC activities) to avoid deadlocks. If the lock action is overwhelmed with a large number of work items, the newest work items will be blocked from acquiring lock but the work items that acquire a lock will still be able to process.
Inputs
- importJob - Import Job Number.
- lockTimeoutPeriodSQL - If in wait for lock mode and timeout period expires for sql query, force the lock.
- waitForLock - Specify if wait for lock and return success status or return immediately with success/fail status
- timeoutPeriodSql - If in wait for lock mode and timeout period expires for sql query, force the lock
- lockRetryInterval- specify the retry interval if in wait for lock mode and the action acquireLock failed
- workItemId - ID of the work item to be locked
Outputs
- lockName - Name of the lock (if successfully acquired)
- lockActionStatus - Results of lockAction (SUCCESS or FAIL)
- errorMessages - Detailed error message if lockAction is FAIL