|
|
|
BlueCielo Meridian Enterprise 2012 Developer's Guide | BlueCielo ECM Solutions |
Will be called immediately after the ConnectToServer method. If ConnectToServer returned True, the Task Server will have opened the repository.
You can use the CurrentObjectID parameter to access the object that was passed by the application that submitted the task.
Note If you use the CurrentObjectID parameter, you must instruct the users of the task extension to set the FSObject parameter for the Submit method. This should be part of the documentation of your task extension.
If the vault (or work area) uses Work Isolation Mode, each user has a private worklist. Working copies on a user’s worklist will not be accessible from the task extension. Operation on documents must be restricted to submitted documents.
Private Sub IAMTask_Initialize(ByVal Repository As Object,
Optional ByVal CurrentObjectID As String = "")
Name | Description |
---|---|
Repository |
Reference to an AMDocumentRepository object opened in the given context. |
CurrentObjectID |
ID of the object specified as the FSObject parameter to Vault.TaskSubmit. |
Following is the default implementation of the Initialize method. In most cases, it can be used without modification.
Two global variables (m_Repository and m_FSObject) are defined to make the repository and the selected object available from the Execute method.
' Define member variables Dim m_FSObject As IAMFSObject Dim m_Repository As IAMDocumentRepository5
Private Sub IAMTask_Initialize(ByVal Repository As Object, Optional ByVal CurrentObjectID As String = "") On Error GoTo eh ' When ConnectToServer() returns True the Task Server will provide a Repository object. If Not Repository Is Nothing Then ' Sample code..... Set m_Repository = Repository On Error Resume Next ' CurrentObjectID: The FSObject passed from the application that submitted the task. If (Len(CurrentObjectID) <> 0) Then Set m_FSObject = m_Repository.GetFSObject(CurrentObjectID) End If Else ' No Repository object available. End If Exit Sub eh: Err.Raise -1, TaskName, "Failed to initialize task." End Sub
Related information
Copyright © 2000-2012 BlueCielo ECM Solutions |