Class SignOffService
- java.lang.Object
-
- com.activeviam.risk.ref.signoff.service.impl.SignOffService
-
- All Implemented Interfaces:
ISignOffService
@Service public class SignOffService extends Object implements ISignOffService
-
-
Field Summary
Fields Modifier and Type Field Description protected com.activeviam.dee.pivot.ILocalDataExtractionService
dataExtractionService
protected org.springframework.core.env.Environment
env
-
Constructor Summary
Constructors Constructor Description SignOffService(org.springframework.core.env.Environment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
approve(SignOffProcessKey instance)
Map<String,String>
export(com.activeviam.signoff.core.model.dto.SignOffProcessInstanceExportDTO instance)
Requests an export and returns a map of export type and task ID.void
initiate(SignOffProcessKey instance)
Map<String,com.activeviam.signoff.core.model.dto.KpiDTO>
kpis(com.activeviam.signoff.core.model.dto.SignOffProcessInstanceExportDTO completion)
Requests KPI values for a sign-off process instance.Set<String>
members(String[] hierarchy)
Requests the available members on the first level of a given cube and hierarchy name.com.activeviam.signoff.core.model.dto.SignOffExportStatusDTO
status(Map<String,String> tasks)
Requests the status of the supplied export tasks.
-
-
-
Method Detail
-
initiate
public void initiate(SignOffProcessKey instance)
- Specified by:
initiate
in interfaceISignOffService
-
approve
public void approve(SignOffProcessKey instance)
- Specified by:
approve
in interfaceISignOffService
-
export
public Map<String,String> export(com.activeviam.signoff.core.model.dto.SignOffProcessInstanceExportDTO instance)
Requests an export and returns a map of export type and task ID.- Specified by:
export
in interfaceISignOffService
- Parameters:
instance
- The sign-off instance for which the export is requested.- Returns:
- A map of export type and task ID.
-
status
public com.activeviam.signoff.core.model.dto.SignOffExportStatusDTO status(Map<String,String> tasks)
Requests the status of the supplied export tasks.- Specified by:
status
in interfaceISignOffService
- Parameters:
tasks
- The map of export type and task ID.- Returns:
- The status of the tasks.
-
kpis
public Map<String,com.activeviam.signoff.core.model.dto.KpiDTO> kpis(com.activeviam.signoff.core.model.dto.SignOffProcessInstanceExportDTO completion)
Requests KPI values for a sign-off process instance.- Specified by:
kpis
in interfaceISignOffService
- Parameters:
completion
- The sign-off process instance.- Returns:
- The map of KPI name to value, goal and status.
-
members
public Set<String> members(String[] hierarchy)
Requests the available members on the first level of a given cube and hierarchy name.- Specified by:
members
in interfaceISignOffService
- Parameters:
hierarchy
- The cube and hierarchy names, as a String array.- Returns:
- The available members on the first level of the hierarchy.
-
-