public class ProcessModelFacade
extends java.lang.Object
Constructor and Description |
---|
ProcessModelFacade() |
Modifier and Type | Method and Description |
---|---|
static void |
clearProcessDiagramNoteIds(ProcessDiagram pd_) |
static ProcessModel |
createProcessModel(ProcessModel pm,
ServiceContext sc)
Creates a process model in the database.
|
static ProcessModel |
createProcessModel(ProcessModel pm_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static void |
fillInAssigneeDisplayNames(ProcessModel pm_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
Assignee display names will be populated automatically by the
AppianTypeCache |
static com.appiancorp.process.design.validation.Errors |
getErrorsForParentsOfProcessModel(java.lang.Long pmId_,
ServiceContext sc_)
Gets errors associated with the given process model having parents
|
static com.appiancorp.process.design.validation.Errors |
getErrorsForParentsOfProcessModel(java.lang.Long pmId_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static com.appiancorp.process.design.validation.Errors |
getErrorsForParentsOfUnpublishedChildren(java.lang.Long pmId_,
ServiceContext sc_)
Gets errors associated with the parents of unpublished proecss models for a
process model
|
static com.appiancorp.process.design.validation.Errors |
getErrorsForParentsOfUnpublishedChildren(java.lang.Long pmId_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static com.appiancorp.process.design.validation.Errors |
getErrorsForUnpublishedChildren(java.lang.Long pmId_,
ServiceContext sc_)
Gets errors for a process model if it has unpublished child processes
|
static com.appiancorp.process.design.validation.Errors |
getErrorsForUnpublishedChildren(java.lang.Long pmId_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static java.util.Map |
getNotesFromProcessModel(ProcessDiagram pm_)
Gets note from a process model
|
static java.util.Map |
getNotesFromProcessModel(ProcessModel pm_) |
static Note[] |
getNotesWithContent(Note[] notes_,
ServiceContext sc_) |
static Note[] |
getNotesWithContent(Note[] notes_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static ProcessVariable[] |
getProcessParameters(java.lang.Long pmId,
ServiceContext sc)
Retrieve the process parameters used to start of the process model of the given ID
|
static ProcessVariable[] |
getProcessParameters(java.lang.Long pmId_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static int |
getRecursiveRelationship(java.lang.Long pmId,
java.lang.Long subPmId,
ServiceContext sc)
Returns that status of the recursive relationship between the two supplied
ProcessModels
|
static int |
getRecursiveRelationship(java.lang.Long pmId_,
java.lang.Long subPmId_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static ProcessVariable[] |
getVisibleProcessVariables(java.lang.Long pmId,
ServiceContext sc)
Retrieve all visible process variables used in the process model given
|
static ProcessVariable[] |
getVisibleProcessVariables(java.lang.Long pmId_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static com.appiancorp.process.design.validation.Errors |
handleProcessModelErrors(java.lang.String[] errors_) |
static com.appiancorp.process.design.validation.Errors |
handleProcessModelErrors(java.lang.String[] errors_,
com.appiancorp.process.design.validation.Errors err_)
Creates Errors from list of String arrays from
validateProcessModel(AbstractProcessModel,ServiceContext) |
static ProcessModel |
loadLatestPublishVersionOfProcessModel(java.lang.Long pmId_,
ServiceContext sc_)
Loads the latest published version of the process model or the draft if there is
no published version from the database.
|
static ProcessModel |
loadLatestPublishVersionOfProcessModel(java.lang.Long pmId_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static ProcessModel |
loadProcessModel(java.lang.Long pmId,
ServiceContext sc)
Loads the working draft of a process model from the database.
|
static ProcessModel |
loadProcessModel(java.lang.Long pmId_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static ProcessModel |
loadProcessModelVersion(java.lang.Long pmId_,
java.lang.String version_,
ServiceContext sc_)
Loads a process model version from the database.
|
static ProcessModel |
loadProcessModelVersion(java.lang.Long pmId_,
java.lang.String version_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static void |
lockProcessModel(java.lang.Long pmId,
boolean overrideLock,
ServiceContext sc)
Locks the process model pmId_, overrides the lock of a previous user if
overrideLock is
true |
static void |
lockProcessModel(java.lang.Long pmId_,
boolean overrideLock_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static ProcessModel |
saveProcessModel(ProcessModel pm,
ServiceContext sc)
Saves a process model in the database.
|
static ProcessModel |
saveProcessModel(ProcessModel pm_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static void |
saveProcessModelAndNodeNotes(java.util.Map allNotes_,
ProcessDiagram newModel_,
ServiceContext sc_) |
static void |
saveProcessModelAndNodeNotes(java.util.Map allNotes_,
ProcessDiagram newModel_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static void |
saveProcessModelAndNodeNotes(java.util.Map allNotes_,
ProcessModel newModel_,
ServiceContext sc_)
Saves the notes for a process model and nodes
|
static void |
saveProcessModelAndNodeNotes(java.util.Map allNotes_,
ProcessModel newModel_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static void |
unlockProcessModel(java.lang.Long pmId_,
ServiceContext sc_)
Unlocks a process model
|
static void |
unlockProcessModel(java.lang.Long pmId_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static void |
updateProcessModelWithMapNotesContent(java.util.Map notesMap_,
ProcessModel pm_)
reinserts notes content into pm from the given map
|
static void |
updateProcessModelWithNotesContent(ProcessDiagram pm_)
Deprecated.
use updateProcessModelWithNotesContent(ProcessDiagram, ServiceContext)
|
static void |
updateProcessModelWithNotesContent(ProcessDiagram pm_,
ServiceContext sc_) |
static void |
updateProcessModelWithNotesContent(ProcessDiagram pm_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static void |
updateProcessModelWithNotesContent(ProcessModel pm_)
Deprecated.
use updateProcessModelWithNotesContent(ProcessModel, ServiceContext)
|
static void |
updateProcessModelWithNotesContent(ProcessModel pm_,
ServiceContext sc_)
Inserts note values from the file system into the process model
|
static void |
updateProcessModelWithNotesContent(ProcessModel pm_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static com.appiancorp.process.design.validation.Errors |
validateAdminConfigSettings(com.appiancorp.process.design.validation.Errors err_,
java.lang.String... errors_) |
static void |
validateAndSetPvDefaults(ProcessModel pm_) |
static com.appiancorp.process.design.validation.Errors |
validateCallIntegrationInformation(com.appiancorp.process.design.validation.Errors err_,
java.lang.String... errors_) |
static com.appiancorp.process.design.validation.Errors |
validateExecuteRoboticProcess(com.appiancorp.process.design.validation.Errors err_,
java.lang.String... errors_) |
static com.appiancorp.process.design.validation.Errors |
validateInterfaceInformation(com.appiancorp.process.design.validation.Errors err_,
java.lang.String... errors_)
Create Interface Information Errors from list of String arrays and adds them to the passed in
Errors
list. |
static com.appiancorp.process.design.validation.Errors |
validateOtherErrors(java.lang.String[] errors_,
com.appiancorp.process.design.validation.Errors err_) |
static java.lang.String[] |
validateProcessModel(AbstractProcessModel apm_,
ServiceContext sc_)
Validates the process model
|
static java.lang.String[] |
validateProcessModel(AbstractProcessModel apm_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
Deprecated.
since 6.0.3
|
static com.appiancorp.process.design.validation.Errors |
validateProcessModelExpressions(java.lang.String[] errors_)
Creates Invalid Expression Errors from list of String arrays from
validateProcessModel(AbstractProcessModel,ServiceContext) |
static com.appiancorp.process.design.validation.Errors |
validateProcessModelExpressions(java.lang.String[] errors_,
com.appiancorp.process.design.validation.Errors err_)
Creates Invalid Expression Errors from list of String arrays from
validateProcessModel(AbstractProcessModel,ServiceContext) and
adds them to the passed in errors list |
static com.appiancorp.process.design.validation.Errors |
validateSubProcessModels(java.lang.String[] errors_)
Creates Invalid Subprocess Model Errors from list of String arrays from
validateProcessModel(AbstractProcessModel,ServiceContext) |
static com.appiancorp.process.design.validation.Errors |
validateSubProcessModels(java.lang.String[] errors_,
com.appiancorp.process.design.validation.Errors err_)
Creates Invalid Subprocess Model Errors from list of String arrays from
validateProcessModel(AbstractProcessModel,ServiceContext) and
adds them to the passed in errors list |
static com.appiancorp.process.design.validation.Errors |
validateWriteRecordsWithEvents(com.appiancorp.process.design.validation.Errors modelErrors,
java.lang.String... errorMessages)
Adds any errors related to the Write Records v2 node to the Errors object.
|
static ProcessModel |
versionProcessModel(ProcessDiagram pd_,
ServiceContext sc_,
java.util.Map notesMap_) |
static ProcessModel |
versionProcessModel(ProcessDiagram pd_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_,
java.util.Map notesMap_)
Deprecated.
since 6.0.3
|
static ProcessModel |
versionProcessModel(ProcessModel pm_,
ServiceContext sc_,
java.util.Map notesMap_)
Versions a process model in the database.
|
static ProcessModel |
versionProcessModel(ProcessModel pm_,
com.appiancorp.asl3.servicefw.connect.ServiceContext sc_,
java.util.Map notesMap_)
Deprecated.
since 6.0.3
|
public static ProcessModel createProcessModel(ProcessModel pm, ServiceContext sc) throws InvalidUserException, PrivilegeException, InvalidFolderException, InvalidPriorityException, DuplicateUuidException
pm
- a process model to be saved.sc
- the service context of the user making this callAppianTypeCache
PrivilegeException
- if the current user does not have permission to perform
this actionInvalidFolderException
- if the ProcessModelFolder
does not
existInvalidPriorityException
- if the Priority
does not existInvalidUserException
- if any user referenced in the
ProcessModel
does not existDuplicateUuidException
@Deprecated public static ProcessModel createProcessModel(ProcessModel pm_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_) throws InvalidUserException, PrivilegeException, InvalidFolderException, InvalidPriorityException, DuplicateUuidException
pm_
- a process model to be saved.sc_
- the service context of the user making this callAppianTypeCache
PrivilegeException
- if the current user does not have permission to perform
this actionInvalidFolderException
- if the ProcessModelFolder
does not
existInvalidPriorityException
- if the Priority
does not existInvalidUserException
- if any user referenced in the
ProcessModel
does not existDuplicateUuidException
public static ProcessModel saveProcessModel(ProcessModel pm, ServiceContext sc) throws AppianException, ServiceException
pm
- a process model to be saved.sc
- the service context of the user making this callAppianTypeCache
InvalidUuidException
- if the process model cannot be found by the UUIDInvalidProcessModelException
- if the process model does not existPrivilegeException
- if the user does not have privileges to update the
process modelLockException
- if the process model is locked by someone other than the
current userInvalidUserException
- if any user referenced in the
ProcessModel
does not existServiceException
- if anything else goes wrongAppianException
@Deprecated public static ProcessModel saveProcessModel(ProcessModel pm_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_) throws AppianException, ServiceException
pm_
- a process model to be saved.sc_
- the service context of the user making this callAppianTypeCache
InvalidUuidException
- if the process model cannot be found by the UUIDInvalidProcessModelException
- if the process model does not existPrivilegeException
- if the user does not have privileges to update the
process modelLockException
- if the process model is locked by someone other than the
current userInvalidUserException
- if any user referenced in the
ProcessModel
does not existServiceException
- if anything else goes wrongAppianException
public static ProcessModel loadProcessModel(java.lang.Long pmId, ServiceContext sc) throws ServiceException, AppianException
pmId
- primary key of a process model in the database.sc
- the service context of the user making this callAppianTypeCache
PrivilegeException
- if the user does not have permission to view the
process model. See ProcessDesignService.getProcessModel(Long)
InvalidProcessModelException
- if the ID does not refer to a valid process
modelServiceException
- if anything else goes wrongAppianException
@Deprecated public static ProcessModel loadProcessModel(java.lang.Long pmId_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_) throws ServiceException, AppianException
pmId_
- primary key of a process model in the database.sc_
- the service context of the user making this callAppianTypeCache
PrivilegeException
- if the user does not have permission to view the
process model. See ProcessDesignService.getProcessModel(Long)
InvalidProcessModelException
- if the ID does not refer to a valid process
modelServiceException
- if naything else goes wrongAppianException
public static ProcessModel loadLatestPublishVersionOfProcessModel(java.lang.Long pmId_, ServiceContext sc_) throws ServiceException, AppianException
pmId_
- primary key of a process model in the database.sc_
- the service context of the user making this callAppianTypeCache
InvalidProcessModelException
- if the ID does not refer to a valid process
modelPrivilegeException
- if the user does not have permission to view the
process model. See ProcessDesignService.getProcessModel(Long)
ServiceException
- if naything else goes wrongAppianException
@Deprecated public static ProcessModel loadLatestPublishVersionOfProcessModel(java.lang.Long pmId_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_) throws ServiceException, AppianException
pmId_
- primary key of a process model in the database.sc_
- the service context of the user making this callAppianTypeCache
InvalidProcessModelException
- if the ID does not refer to a valid process
modelPrivilegeException
- if the user does not have permission to view the
process model. See ProcessDesignService.getProcessModel(Long)
ServiceException
- if naything else goes wrongAppianException
public static ProcessVariable[] getProcessParameters(java.lang.Long pmId, ServiceContext sc) throws ServiceException
pmId
- process model id to retrieve variables forsc
- the service context of the user making this callServiceException
- if anything goes wrong@Deprecated public static ProcessVariable[] getProcessParameters(java.lang.Long pmId_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_) throws ServiceException
pmId_
- process model id to retrieve variables forsc_
- the service context of the user making this callServiceException
- if anything goes wrongpublic static ProcessVariable[] getVisibleProcessVariables(java.lang.Long pmId, ServiceContext sc) throws ServiceException
pmId
- process model id to retrieve variables forsc
- the service context of the user making this callServiceException
- if anything goes wrong@Deprecated public static ProcessVariable[] getVisibleProcessVariables(java.lang.Long pmId_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_) throws ServiceException
pmId_
- process model id to retrieve variables forsc_
- the service context of the user making this callServiceException
- if anything goes wrongpublic static int getRecursiveRelationship(java.lang.Long pmId, java.lang.Long subPmId, ServiceContext sc) throws ServiceException
pmId
- parent process idsubPmId
- sub parent process idsc
- the service context of the user making this callServiceException
- if anything goes wrongProcessDesignService.getRecursiveRelationship(Long,Long)
@Deprecated public static int getRecursiveRelationship(java.lang.Long pmId_, java.lang.Long subPmId_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_) throws ServiceException
pmId_
- parent process idsubPmId_
- sub parent process idsc_
- the service context of the user making this callServiceException
- if anything goes wrongProcessDesignService.getRecursiveRelationship(Long,Long)
@Deprecated public static void fillInAssigneeDisplayNames(ProcessModel pm_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_) throws InvalidUserException, InvalidGroupException
AppianTypeCache
pm_
- the process model to fill in the appian types forsc_
- the current user's service contextInvalidUserException
- if the process model contains any usernames that do
not refer to valid usersInvalidGroupException
- if the process model contains any group IDs that do
not refer to valid groupspublic static void lockProcessModel(java.lang.Long pmId, boolean overrideLock, ServiceContext sc) throws ServiceException, AppianException
true
pmId
- id of process model to lockoverrideLock
- whether or not to override another user's locksc
- the current user's service contextLockException
- if the process model is already locked and override was not
truePrivilegeException
- if the user does not have access to lock (or override,
if specified) the process model See
ProcessDesignService.lockProcessModel(Long,boolean)
ServiceException
- if any other error occursAppianException
@Deprecated public static void lockProcessModel(java.lang.Long pmId_, boolean overrideLock_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_) throws ServiceException, AppianException
true
pmId_
- id of process model to lockoverrideLock_
- whether or not to override another user's locksc_
- the current user's service contextLockException
- if the process model is already locked and override was not
truePrivilegeException
- if the user does not have access to lock (or override,
if specified) the process model See
ProcessDesignService.lockProcessModel(Long,boolean)
ServiceException
- if any other error occursAppianException
public static ProcessModel loadProcessModelVersion(java.lang.Long pmId_, java.lang.String version_, ServiceContext sc_) throws AppianException, ServiceException
pmId_
- the id of a process model in the database.version_
- version of the process model to load.sc_
- the current user's service contextAppianTypeCache
AppianException
ServiceException
@Deprecated public static ProcessModel loadProcessModelVersion(java.lang.Long pmId_, java.lang.String version_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_) throws AppianException, ServiceException
pmId_
- the id of a process model in the database.version_
- version of the process model to load.sc_
- the current user's service contextAppianTypeCache
AppianException
ServiceException
public static ProcessModel versionProcessModel(ProcessModel pm_, ServiceContext sc_, java.util.Map notesMap_) throws ServiceException, AppianException
pm_
- a process model to be versioned.sc_
- the service context of the user on behalf of whom this request is made.AppianTypeCache
ServiceException
AppianException
@Deprecated public static ProcessModel versionProcessModel(ProcessModel pm_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_, java.util.Map notesMap_) throws ServiceException, AppianException
pm_
- a process model to be versioned.sc_
- the service context of the user on behalf of whom this request is made.AppianTypeCache
ServiceException
AppianException
public static ProcessModel versionProcessModel(ProcessDiagram pd_, ServiceContext sc_, java.util.Map notesMap_) throws ServiceException, AppianException
pd_
- sc_
- notesMap_
- ServiceException
AppianException
AppianException
@Deprecated public static ProcessModel versionProcessModel(ProcessDiagram pd_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_, java.util.Map notesMap_) throws ServiceException, AppianException
pd_
- sc_
- notesMap_
- ServiceException
AppianException
public static void clearProcessDiagramNoteIds(ProcessDiagram pd_)
public static void unlockProcessModel(java.lang.Long pmId_, ServiceContext sc_)
pmId_
- the id of the process model to unlocksc_
- the current user's service context@Deprecated public static void unlockProcessModel(java.lang.Long pmId_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
pmId_
- the id of the process model to unlocksc_
- the current user's service contextpublic static final void saveProcessModelAndNodeNotes(java.util.Map allNotes_, ProcessModel newModel_, ServiceContext sc_)
allNotes_
- a map containing all the notesnewModel_
- the new model to save the notes forsc_
- the current user's service context@Deprecated public static final void saveProcessModelAndNodeNotes(java.util.Map allNotes_, ProcessModel newModel_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
allNotes_
- a map containing all the notesnewModel_
- the new model to save the notes forsc_
- the current user's service contextpublic static final void saveProcessModelAndNodeNotes(java.util.Map allNotes_, ProcessDiagram newModel_, ServiceContext sc_)
allNotes_
- newModel_
- sc_
- @Deprecated public static final void saveProcessModelAndNodeNotes(java.util.Map allNotes_, ProcessDiagram newModel_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
allNotes_
- newModel_
- sc_
- public static java.util.Map getNotesFromProcessModel(ProcessDiagram pm_)
pm_
- the process model to get the notes fromMap
of the notes retrievedpublic static java.util.Map getNotesFromProcessModel(ProcessModel pm_)
public static void updateProcessModelWithMapNotesContent(java.util.Map notesMap_, ProcessModel pm_)
notesMap_
- map containing note content for the given pmpm_
- pm to insert note content into@Deprecated public static void updateProcessModelWithNotesContent(ProcessModel pm_)
pm_
- process model to insert notes intopublic static void updateProcessModelWithNotesContent(ProcessModel pm_, ServiceContext sc_)
pm_
- process model to insert notes intosc_
- ServiceContext of user invoking the call.@Deprecated public static void updateProcessModelWithNotesContent(ProcessModel pm_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
pm_
- process model to insert notes intosc_
- ServiceContext of user invoking the call.@Deprecated public static void updateProcessModelWithNotesContent(ProcessDiagram pm_)
pm_
- process diagram to insert notes intopublic static void updateProcessModelWithNotesContent(ProcessDiagram pm_, ServiceContext sc_)
pm_
- sc_
- @Deprecated public static void updateProcessModelWithNotesContent(ProcessDiagram pm_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
pm_
- sc_
- public static com.appiancorp.process.design.validation.Errors getErrorsForUnpublishedChildren(java.lang.Long pmId_, ServiceContext sc_)
pmId_
- the id of the process modelsc_
- the current user's service contextErrors
which will contain errors if the given
process model has unpublished child processes. otherwise it will be empty.
See ProcessDesignService.getUnpublishedChildrenForProcessModel(java.lang.Long)
for
a list of the result codes which will be used to create the returned
object@Deprecated public static com.appiancorp.process.design.validation.Errors getErrorsForUnpublishedChildren(java.lang.Long pmId_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
pmId_
- the id of the process modelsc_
- the current user's service contextErrors
which will contain errors if the given
process model has unpublished child processes. otherwise it will be empty.
See ProcessDesignService.getUnpublishedChildrenForProcessModel(java.lang.Long)
for
a list of the result codes which will be used to create the returned
objectpublic static com.appiancorp.process.design.validation.Errors getErrorsForParentsOfUnpublishedChildren(java.lang.Long pmId_, ServiceContext sc_)
pmId_
- the process model to get errors forsc_
- the current user's service contextErrors
objects that will return errors if the
unpublished children of a process model have other parents. Otherwise the
list will be empty. See
ProcessDesignService.getParentsOfUnpublishedChildrenForProcessModel(java.lang.Long)
for a list of the result codes which will be used to create the returned
object@Deprecated public static com.appiancorp.process.design.validation.Errors getErrorsForParentsOfUnpublishedChildren(java.lang.Long pmId_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
pmId_
- the process model to get errors forsc_
- the current user's service contextErrors
objects that will return errors if the
unpublished children of a process model have other parents. Otherwise the
list will be empty. See
ProcessDesignService.getParentsOfUnpublishedChildrenForProcessModel(java.lang.Long)
for a list of the result codes which will be used to create the returned
objectpublic static com.appiancorp.process.design.validation.Errors getErrorsForParentsOfProcessModel(java.lang.Long pmId_, ServiceContext sc_)
pmId_
- the process model to check for parentssc_
- the current user's service contextErrors
that contain errors if the given process
model has parent process models. Otherwise the list is empty. See
ProcessDesignService.getParentsForProcessModel(java.lang.Long)
for a list of the
result codes which will be used to create the returned object@Deprecated public static com.appiancorp.process.design.validation.Errors getErrorsForParentsOfProcessModel(java.lang.Long pmId_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
pmId_
- the process model to check for parentssc_
- the current user's service contextErrors
that contain errors if the given process
model has parent process models. Otherwise the list is empty. See
ProcessDesignService.getParentsForProcessModel(java.lang.Long)
for a list of the
result codes which will be used to create the returned objectpublic static java.lang.String[] validateProcessModel(AbstractProcessModel apm_, ServiceContext sc_) throws ServiceException
apm_
- the process model to validatesc_
- the current user's service contextString
array representing the errors within the process
model. See ProcessDesignService.validateProcessModel(com.appiancorp.suiteapi.process.AbstractProcessModel)
a description
of the possible validation errorsServiceException
- if anything goes wrong@Deprecated public static java.lang.String[] validateProcessModel(AbstractProcessModel apm_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_) throws ServiceException
apm_
- the process model to validatesc_
- the current user's service contextString
array representing the errors within the process
model. See ProcessDesignService.validateProcessModel(com.appiancorp.suiteapi.process.AbstractProcessModel)
a description
of the possible validation errorsServiceException
- if anything goes wrongpublic static com.appiancorp.process.design.validation.Errors validateProcessModelExpressions(java.lang.String[] errors_, com.appiancorp.process.design.validation.Errors err_)
validateProcessModel(AbstractProcessModel,ServiceContext)
and
adds them to the passed in errors listerrors_
- the String array of errors gotten from
validateProcessModel(AbstractProcessModel,ServiceContext)
err_
- an object used to encapsulate errors. This should not be null.Errors
object containing errors for the invalid expression
exceptions found in the string of errorspublic static com.appiancorp.process.design.validation.Errors validateProcessModelExpressions(java.lang.String[] errors_)
validateProcessModel(AbstractProcessModel,ServiceContext)
errors_
- the String array of errors gotten from
validateProcessModel(AbstractProcessModel,ServiceContext)
Errors
object containing errors for the invalid expression
exceptions found in the string of errorspublic static com.appiancorp.process.design.validation.Errors validateSubProcessModels(java.lang.String[] errors_)
validateProcessModel(AbstractProcessModel,ServiceContext)
errors_
- the String array of errors gotten from
validateProcessModel(AbstractProcessModel,ServiceContext)
Errors
object containing errors for the invalid expression
exceptions found in the string of errorspublic static com.appiancorp.process.design.validation.Errors validateSubProcessModels(java.lang.String[] errors_, com.appiancorp.process.design.validation.Errors err_)
validateProcessModel(AbstractProcessModel,ServiceContext)
and
adds them to the passed in errors listerrors_
- the String array of errors gotten from
validateProcessModel(AbstractProcessModel,ServiceContext)
err_
- an Errors
to which validation errors will be addedErrors
object containing errors for the invalid expression
exceptions found in the string of errorspublic static com.appiancorp.process.design.validation.Errors validateInterfaceInformation(com.appiancorp.process.design.validation.Errors err_, java.lang.String... errors_)
Errors
list. Interface Information Errors are those related to the mapping nodes and the process properties
declare in their FormConfig.err_
- the current list of Error
serrors_
- the list of Strings from which to construct the errorsError
s with the Interface Information Errors addedpublic static com.appiancorp.process.design.validation.Errors validateOtherErrors(java.lang.String[] errors_, com.appiancorp.process.design.validation.Errors err_)
public static com.appiancorp.process.design.validation.Errors validateAdminConfigSettings(com.appiancorp.process.design.validation.Errors err_, java.lang.String... errors_)
public static com.appiancorp.process.design.validation.Errors handleProcessModelErrors(java.lang.String[] errors_)
public static com.appiancorp.process.design.validation.Errors handleProcessModelErrors(java.lang.String[] errors_, com.appiancorp.process.design.validation.Errors err_)
validateProcessModel(AbstractProcessModel,ServiceContext)
errors_
- the String array of errors gotten from
validateProcessModel(AbstractProcessModel,ServiceContext)
err_
- an Errors
to which validation errors will be addedErrors
object containing errors for the invalid expression
exceptions found in the string of errorspublic static void validateAndSetPvDefaults(ProcessModel pm_)
public static Note[] getNotesWithContent(Note[] notes_, ServiceContext sc_)
notes_
- sc_
- @Deprecated public static Note[] getNotesWithContent(Note[] notes_, com.appiancorp.asl3.servicefw.connect.ServiceContext sc_)
public static com.appiancorp.process.design.validation.Errors validateCallIntegrationInformation(com.appiancorp.process.design.validation.Errors err_, java.lang.String... errors_)
public static com.appiancorp.process.design.validation.Errors validateExecuteRoboticProcess(com.appiancorp.process.design.validation.Errors err_, java.lang.String... errors_)
public static com.appiancorp.process.design.validation.Errors validateWriteRecordsWithEvents(com.appiancorp.process.design.validation.Errors modelErrors, java.lang.String... errorMessages)
modelErrors
- the existing model errors to append toerrorMessages
- the error messages to processCopyright © 2003-2024 Appian Corporation. All Rights Reserved.