Class SepaController
- java.lang.Object
-
- org.imixs.workflow.engine.scheduler.SchedulerController
-
- org.imixs.workflow.sepa.controller.SepaController
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class SepaController extends org.imixs.workflow.engine.scheduler.SchedulerControllerThe SepaController is used to configure the SepaService. This service is used to generate sepa export workitems.The Controller creates a configuration entity "type=configuration; txtname=sepa".
The following config items are defined:
_model_version = model version for the SEPA export _initial_task = inital task ID _dbtr_IBAN = default IBAN for the SEPA export file _dbtr_BIC = default BIC for the SEPA export file
- Version:
- 1.0
- Author:
- rsoika
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SepaController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCdtr()voidaddDbtr()Adds a new dbtr object.doublecalculateSum(List<String> refids, String item)This method computes the sum for a given item in a list of workitems.List<org.imixs.workflow.ItemCollection>getCdtrList()List<org.imixs.workflow.ItemCollection>getDbtrList()StringgetName()StringgetSchedulerClass()Returns the sepa scheduler class namevoidinit()This method loads the dbtr list from the configuration documentvoidloadDbtrCdtrListFromConfiguration()This method loads the dbtr.config and cdtr.config into a list of ItemCollection objects representing the sources defined in a Importer configuration.voidremoveCdtr(String name)voidremoveDbtr(String name)Removes an dbtr item from the listvoidsaveConfiguration()
-
-
-
Method Detail
-
init
@PostConstruct public void init()
This method loads the dbtr list from the configuration document- Overrides:
initin classorg.imixs.workflow.engine.scheduler.SchedulerController
-
getName
public String getName()
- Overrides:
getNamein classorg.imixs.workflow.engine.scheduler.SchedulerController
-
getSchedulerClass
public String getSchedulerClass()
Returns the sepa scheduler class name- Overrides:
getSchedulerClassin classorg.imixs.workflow.engine.scheduler.SchedulerController
-
calculateSum
public double calculateSum(List<String> refids, String item)
This method computes the sum for a given item in a list of workitems. The result is rounded to 2 digits.- Parameters:
refids- - list of workitem uniqueIdsitem- - name of the item to summarize- Returns:
- sum rounded to 2 digits
-
loadDbtrCdtrListFromConfiguration
public void loadDbtrCdtrListFromConfiguration()
This method loads the dbtr.config and cdtr.config into a list of ItemCollection objects representing the sources defined in a Importer configuration.
-
saveConfiguration
public void saveConfiguration()
- Overrides:
saveConfigurationin classorg.imixs.workflow.engine.scheduler.SchedulerController
-
getDbtrList
public List<org.imixs.workflow.ItemCollection> getDbtrList()
-
getCdtrList
public List<org.imixs.workflow.ItemCollection> getCdtrList()
-
addDbtr
public void addDbtr()
Adds a new dbtr object.
-
addCdtr
public void addCdtr()
-
removeDbtr
public void removeDbtr(String name)
Removes an dbtr item from the list- Parameters:
name- - name of dbtr
-
removeCdtr
public void removeCdtr(String name)
-
-