Below is a list of the subtasks available for use with Session Manager, the criteria necessary for them to be enabled, and the steps that are performed when they are executed. Many of these subtasks are named after the task with which they are associated. You may create custom subtasks (see ArcFM Solution Resource Center). Use the Process Framework Admin Tool to group subtasks and create custom tasks.
Changes the owner of a session to any valid user.
Enabled
- MMSessionManager must be the current extension.
- The node passed to this subtask must be a session.
- Determines if there are any other users that have a role that can access the node in its current state.
Execute
- Identifies the users with the appropriate roles assigned to own the selected node.
- Gets the value of the DefaultUser parameter.
- If the AutoChangeOwner value is set to 1 (True), selects the DefaultUser and assigns the node. If no DefaultUser value is set, allows the user to select from a list of valid users.
- If the AutoChangeOwner value is set to 0 (False), selects the DefaultUser and allows the user to change the selection from a list of valid users. If no DefaultUser value is set, allows the user to select from a list of valid users.
- Assigns the node to the chosen user.
Parameters
- DefaultUser: takes a user name as a value. The default value is null.
- AutoChangeOwner: takes a value of 0 or 1. 0=False, prompt the user to select owner; 1=True, select default owner without prompt. The default value is 0 (False).
Allows the user to assign the session to another user.
Enabled
- The user must be an Administrator or the current owner.
- MMSessionManager must be the current extension.
- The node passed to this subtask is a Session node.
- Determines if there are any other users that have a role that can access the node in its current state.
Execute
- Checks to see that the node is a session.
- Prompts the user to save if the session is open in ArcMap.
- Finds a list of users that have the roles necessary to access the current node.
- Gets the value of the DefaultUser parameter.
- If the AutoChangeOwner value is set to 1 (True), selects the DefaultUser and assigns the node. If no DefaultUser value is set, allows the user to select from a list of valid users.
- If the AutoChangeOwner value is set to 0 (False), selects the DefaultUser and allows the user to change the selection from a list of valid users. If no DefaultUser value is set, allows the user to select from a list of valid users.
- Attempts to transfer ownership of the session to the selected user.
- Closes the session if it is open in ArcMap.
Parameters
- DefaultUser: takes a user name as a value. The default value is null.
- AutoChangeOwner: takes a value of 0 or 1. 0=False, prompt the user to select owner; 1=True, select default owner without prompt. The default value is 0 (False).
Change Session Owner Self
Changes the owner of the selected node to the current user.
Enabled
- MMSessionManager must be the current extension.
- Determines if there are any other users that have a role that can access the node in its current state.
Execute
Changes the owner of the node to the current user.
Change Session Owner to Mobile
Allows the user to change the owner of a session to a mobile user.
Enabled
- MMSessionManager must be the current extension.
- The node passed to this subtask must be a session.
- Users must exist with the Mobile role assigned.
Execute
- Finds a list of users that have the roles necessary to access the current node.
- Gets the value of the DefaultUser parameter.
- If the AutoChangeOwner value is set to 1 (True), selects the DefaultUser and assigns the node. If no DefaultUser value is set, allows the user to select from a list of valid users.
- If the AutoChangeOwner value is set to 0 (False), selects the DefaultUser and allows the user to change the selection from a list of valid users. If no DefaultUser value is set, allows the user to select from a list of valid users.
- Assigns session to the chosen user.
Parameters
- DefaultUser: takes a user name as a value. The default value is null.
- AutoChangeOwner: takes a value of 0 or 1. 0=False, prompt the user to select owner; 1=True, select default owner without prompt. The default value is 0 (False).
Clear CurrentOpenSession Property
Enabled
The CurrentOpenSession property must contain a value other than Null.
Execute
Sets the CurrentOpenSession property to Null.
Closes a session that has been opened in ArcMap.
Enabled
- MMSessionManager must be the current extension.
- The node passed to this subtask is a Session node.
- Session Manager must be open through ArcMap and a session must be open.
Execute
Adds a new session node.
Enabled
- MMSessionManager must be the current extension.
- The selected node must be a filter (top level) node.
Execute
- Creates a new session node.
- Assigns the TypeID if one has been specified in the parameter.
- Adds the node to the TOC.
Parameters
SessionTypeID: Takes a session type (e.g., Electric, Gas, Water).
Removes the session and attempts to remove all of the associated version data from ArcMap. If it cannot remove the version data from ArcMap, the data is marked as orphaned and may be deleted using the Clean Up tool.
Enabled
- MMSessionManager must be the current extension.
- The node passed to this subtask is a Session.
Execute
- Asks the user to confirm deletion.
- If the session is open in ArcMap, it will be closed.
- Calls the node’s deleter object.
Does User Own Session Node?
Checks to see if the user is also the current owner.
Enabled
If the user is not the owner, the Enabled method will return false and the subtask will be disabled.
Execute
Determines if a session has been closed.
Enabled
Disabled if a session is currently opened.
Execute
Is Session in a Non-Mobile State?
Determines if the session is open.
Enabled
If the state is 8 (Mobile), returns false.
Execute
Parameters
OverrideDefaultMobileStateNumber: takes a long integer for the number that corresponds with the session's current state. The default is 8 (Mobile).
Checks the session to determine if it is locked.
Enabled
- Disabled if the session’s node is locked.
- Disabled if the session has a packet and Mobile is disabled.
- MMSessionManager must be the current extension.
- The selected node is a session node.
Execute
Determines if a session is open for editing in ArcMap.
Enabled
Disabled if a session is not currently opened.
Execute
Changes the mobile session’s status to Pending Approval and allows the mobile user to assign it to an approval officer.
Enabled
- MMSessionManager must be the current extension.
- The node passed to this subtask must be a session.
- The Submit Session task must be enabled.
Execute
Executes the Submit Session task.
Opens the session node for editing in ArcMap.
Enabled
- A session node must be selected.
- MMSessionManager must be the current extension.
- You must NOT have an editing session started.
- Session Manager must be open from ArcMap (not standalone) and visible.
- User must have access to the appropriate ArcFM Solution license: ArcFM, Designer or Inspector.
- User must have access to the appropriate Esri license: Engine Geodatabase, ArcGIS for Desktop Standard (formerly ArcEditor) or ArcGIS for Desktop Advanced (formerly ArcInfo).
Execute
- Opens the session as editable.
- Sets the PxApplication on the Process Framework Task Tool extension.
Opens the session node for graphic (or redline) editing in ArcMap. This subtask requires Mobile (or Redliner) and creates a Mobile packet for the session when executed.
Enabled
- A session node must be selected.
- MMSessionManager must be the current extension.
- You must NOT have an editing session started.
- Session Manager must be open from ArcFM Viewer (not standalone) and visible.
- Session Manager must be open in a field database. This subtask is not available on the Enterprise.
Execute
- Gets the session.
- Creates a Mobile packet if one does not already exist for the session.
- Determines whether the session should be opened as View Only.
- Loads the session's stored display (if it exists).
- Loads the session's Mobile packet.
- Activates the mobile graphics layer.
- Sets the PxApplication on the Process Framework Task Tool extension.
Posts the session version to the geodatabase.
Enabled
- MMSessionManager must be the current extension.
- A session node must be open in ArcMap.
- If the session is in a versioned database, the session’s version must be postable.
Execute
- If the workspace is versioned, the session is posted. If the workspace is not versioned (e.g., Access database), the session is saved and not posted, but the approve actions are still performed.
- Closes the session.
- If the DoNotDeleteSession subtask parameter is null or set to 0, the session is deleted. If this value is 1, the session is not deleted and its state is set to Pending Approval. The session's version status is set to 2 for "posted."
Parameters
- DoNotDeleteSession: takes a value of 0 or 1. 0 (or null)=delete session; 1=do not delete session.
Reconciles the session’s version with the geodatabase.
Enabled
- Session Manager must be opened through ArcMap.
- A session node must be open in ArcMap.
- The session must be editable.
- The workspace must be versioned.
Execute
- Determines whether the DefineConflictsByColumn configuration value is set in the Process Framework Admin Tool (Configuration tab). If this value is set to 1, conflicts are defined by column. If this value is set to 0 or not set at all, conflicts are defined by row.
- Reconciles the session node. If reconcile fails or is cancelled, Execute returns false and the subtask is rolled back along with any subtasks executed prior to it.
Changes the session’s status to In Progress and allows the user to assign it to another user.
Enabled
- MMSessionManager must be the current extension.
- The selected node is a session.
- The session must be editable.
- If the session is open in ArcMap, the user must be editing.
Execute
- Prompts the user to select a new user.
- Attempts to transfer ownership.
- Tells the builder that the user has changed so it can update the tree if necessary.
Executes the "Send Session to Current Field Owner" task if the node’s current owner has the Session ALWAYS Mobile User role assigned.
Enabled
- MMSessionManager must be the current extension.
- The selected node is a session.
Execute
- Gets the node's owner.
- Executes the "Send Session to Current Field Owner" task if the node's owner has the Session ALWAYS Mobile User role assigned.
Saves the current session.
Enabled
- MMSessionManager must be the current extension.
- A session node must be opened through ArcMap.
- The user must have an editing session started.
Execute
Identifies whether the user is in the field or on the enterprise and executes the appropriate task: Send Session to Enterprise or Send Session to Field
Enabled
- A valid PxNode must have been passed into this subtask.
- That PxNode must be a session node.
- Field: The "Send Session to Field" task must be enabled.
- Enterprise: The "Send Session to Enterprise" task must be enabled.
Execute
- Checks to see if the user is in the field or on the enterprise.
- If the user is in the field, executes Send to Enterprise task.
- If the user is on the enterprise, executes the Send to Field task.
Send Session to Enterprise
Takes a session from the mobile environment and puts it back on the enterprise server.
Enabled
- The MM_Mobile_State table must exist in the current Process Framework database.
- The Database ID field must have a value. This field is located in the Process Framework Administration Tool on the Extensions tab.
- MMSessionManager must be the current extension.
- The selected node must be a session.
Execute
- Closes the session if it is open in ArcMap.
- Adds the packet to the transporter.
- Deletes the session.
Takes a session from the enterprise server and puts it in the mobile environment.
Enabled
- The Database ID field must have a value. This field is located in the Process Framework Administration Tool on the Extensions tab.
- MMSessionManager must be the current extension.
- The selected node must be a session.
- The MM_Mobile_State table must exist in the current Process Framework database.
- The current session must have not already been imported.
Execute
- Closes the session if it is open in ArcMap.
- Creates a mobile packet if one does not already exist.
- Saves the mobile packet.
- Adds the mobile packet to the transporter.
Changes the session’s status to Pending Approval and allows the user to assign it to an approval officer.
Enabled
- MMSessionManager must be the current extension.
- The selected node is a session.
- The session must have been opened in ArcMap at least once.
- If the session is open in ArcMap, the session must be editable and the user must have an editing session started.
Execute
- Prompts the user to save edits.
- Prompts the user to select an approval officer.
- Attempts to transfer ownership.
- Tells the builder that the user has changed so it can update the tree if necessary.
- If the session is open in ArcMap, it will be closed when it is submitted to another user.