RMS.Approval

Description

Approval related functions.

Categories

NameDescription
WorklistWorkList functions

Functions

NameSignature and Synopsis
copyApprovedDomainModelvoid copyApprovedDomainModel(String inputDirpath, String destPath)
This function loads and returns decision project from the directory passed
createDecisionProjectObject createDecisionProject(String dpPayload, boolean optimized)
This function returns a decision project object created out of the string payload,
fetchServedProjectsListString[] fetchServedProjectsList(String baseDirPath)
Gets a list of all directories present inside a folder
getAllImplementationsInProjectObject getAllImplementationsInProject(Object decisionProject)
Returns a list of all Implementations in the project
getArtifactBitsString getArtifactBits(String artifactLoc)
Gets a string representation of an artifact used to create a Decision Project.
getImplPathsString[] getImplPaths(Object implsList)
This function searches the entire list of implementations and returns paths of all of them as an array of strings
getMatchingImplementationString getMatchingImplementation(Object implList, String implPath)
This function searches the entire decision project and returns a string representation of the implementation matching the requested path
loadDecisionProjectFromDirObject loadDecisionProjectFromDir(String dirPath)
This function loads and returns decision project from the directory passed
persistDecisionProjectboolean persistDecisionProject(Object dp, String dpName, String baseDir)
Returns true if the decision project was persisted else false
populateDecisionProjectMetadatavoid populateDecisionProjectMetadata(Concept dpConcept, Object decisionProject)
This function creates and populates DecisionProjectMetadata concept properties with the metadata of the incoming Decision Project, and sets the concept as a contained concept
readAllImplementationsFromLocationString readAllImplementationsFromLocation(Object tokenObject, String decisionDataDir)
This function loads and returns a consolidated xmi representation of all the decision tables in the directory. This is to be used to send all approved decision tables when a checkout or a project update operation is performed. It gets wrapped in a <tables> element and sent with the CheckoutProjectResponse Event.
writeTestDatavoid writeTestData(String fileName, String contents)
This function writes base64 encoded contents represented as string onto the disk in form of a zip file named TestData.zip
zipTestDatavoid zipTestData(String srcFolder, String zipFileName)
This function creates a zip file out of a source folder, and all of its children.