public class ProcessFacade
extends java.lang.Object
Constructor and Description |
---|
ProcessFacade() |
Modifier and Type | Method and Description |
---|---|
static ProcessDiagram |
loadProcessDiagram(java.lang.Long processId_,
int typeOfNotesToRetrieve_,
ServiceContext sc_)
Loads a process diagram.
|
static ProcessDiagram |
loadProcessDiagram(java.lang.Long processId_,
int typeOfNotesToRetrieve_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static ProcessDiagram |
saveProcessModelForProcess(java.lang.Long processId_,
ProcessDiagram processDiagram_,
ServiceContext sc_,
java.util.Map notesMap_)
Saves a process model for a process.
|
public static ProcessDiagram loadProcessDiagram(java.lang.Long processId_, int typeOfNotesToRetrieve_, ServiceContext sc_) throws AppianException, java.lang.Exception
ProcessExecutionService
, calls
ProcessExecutionService.getProcessDiagram(java.lang.Long, int)
, and populates the
assignee display names and AppianTypeCache
in the process diagram.processId_
- id of process to load diagram fortypeOfNotesToRetrieve_
- This is one of
ProcessExecutionService.RETRIEVE_PROCESS_MODEL_NOTES
or
ProcessExecutionService.RETRIEVE_PROCESS_NOTES
sc_
- the user's service contextInvalidProcessException
- If the process does not exist.PrivilegeException
- If the user does not have permissions to retrieve the
process or the process diagram of the process.java.lang.IllegalArgumentException
- if typeOfNotesToRetrieve_
is
invalidAppianException
java.lang.Exception
ProcessModelFacade.fillInAssigneeDisplayNames(com.appiancorp.suiteapi.process.ProcessModel, com.appiancorp.asl3.servicefw.connect.ServiceContext)
,
ProcessDiagram.fillInAppianTypes(com.appiancorp.suiteapi.process.AppianTypeCache)
@Deprecated public static ProcessDiagram loadProcessDiagram(java.lang.Long processId_, int typeOfNotesToRetrieve_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_) throws AppianException, java.lang.Exception
ProcessExecutionService
, calls
ProcessExecutionService.getProcessDiagram(java.lang.Long, int)
, and populates the
assignee display names and AppianTypeCache
in the process diagram.processId_
- id of process to load diagram fortypeOfNotesToRetrieve_
- This is one of
ProcessExecutionService.RETRIEVE_PROCESS_MODEL_NOTES
or
ProcessExecutionService.RETRIEVE_PROCESS_NOTES
sc_
- the user's service contextInvalidProcessException
- If the process does not exist.PrivilegeException
- If the user does not have permissions to retrieve the
process or the process diagram of the process.java.lang.IllegalArgumentException
- if typeOfNotesToRetrieve_
is
invalidAppianException
java.lang.Exception
ProcessModelFacade.fillInAssigneeDisplayNames(com.appiancorp.suiteapi.process.ProcessModel, com.appiancorp.asl3.servicefw.connect.ServiceContext)
,
ProcessDiagram.fillInAppianTypes(com.appiancorp.suiteapi.process.AppianTypeCache)
public static ProcessDiagram saveProcessModelForProcess(java.lang.Long processId_, ProcessDiagram processDiagram_, ServiceContext sc_, java.util.Map notesMap_) throws AppianException
ProcessExecutionService
and calls
ProcessExecutionService.updateProcessModelForProcess(java.lang.Long, com.appiancorp.suiteapi.process.ProcessDiagram, com.appiancorp.suiteapi.process.ProcessModel[])
processId_
- process to save toprocessDiagram_
- process diagram to savesc_
- service context of userchildProcessModels_
- the sub and linked process models for this
updating process modelInvalidProcessException
- if the process ID does not refer to a valid
processPrivilegeException
- if the user does not have access to the process
diagramServiceException
- if any system-level error occursInvalidArgumentException
- if the ProcessDiagram bean passed in has
any nodes with non-null IDs that are not in the current version of theAppianException
ProcessExecutionService.updateProcessModelForProcess(java.lang.Long, com.appiancorp.suiteapi.process.ProcessDiagram, com.appiancorp.suiteapi.process.ProcessModel[])
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.