CheckIn

You can use this function for Optiva Workflows.

Purpose

Unlocks an object.

Syntax


Dim variable As Integer = CheckIn(symbol, keycode)

Arguments

Part Description
Symbol Object symbol. Leave blank for the current object of the workflow.
KeyCode Object to unlock. Leave blank for the current object of the workflow.

Description

Check-in unlocks an object. It returns a value of 0 or 1.

Value Description
0 Did not check in the object. May already be checked in.
1 Checked in the object.

Examples

This example checks in the current object from which the Workflow was launched


Dim rc As Integer = CheckIn("","")
If rc = 1 Then
MessageList(_OBJECTSYMBOL & " " & _OBJECTKEY & " checked in.")
Else
MessageList(_OBJECTSYMBOL & " " & _OBJECTKEY & " not checked in.")
End if

This example checks in a specific object


Dim rc As Integer = CheckIn("FORMULA","FS-0010\0001")
If rc = 1 Then
MessageList("Formula FS-0010\0001 has been checked in.")
Else
MessageList("Formula FS-0010\0001 could not be checked in.")
End if