IM-Workflow Matter Number Allocation Function Creation¶
In intra-mart Accel Kaiden!, the process for numbering the IM-Workflow matter numbers are newly created and can be associated with the application form by application master maintenance function.Implementation method is explained below.
Matter Number Allocation Process¶
It creates matter number allocation process.Please implement jp.co.slcs.kaiden2.extension_imw.foundation.util.imw.ImwNumbering interface and return String type matter number.In below sample, Top "p" of the matter number which was numbered in IM-Workflow standard is given and returned.package jp.co.slcs.kaiden2.tutorial.foundation.util.imw; import java.util.Map; import jp.co.intra_mart.foundation.workflow.exception.WorkflowException; import jp.co.intra_mart.foundation.workflow.util.WorkflowNumberingManager; import jp.co.slcs.kaiden2.base.foundation.exception.KaidenRuntimeException; import jp.co.slcs.kaiden2.extension_imw.foundation.model.dto.ActionProcessParameterDto; import jp.co.slcs.kaiden2.extension_imw.foundation.util.imw.ImwNumbering; /** * matter number allocation extension class sample. */ public class ImwNumberingExtensionSample implements ImwNumbering { /** * do numbering process for matter number and return the results. */ @Override public String getNewMatterNumber(ActionProcessParameterDto _parameter, Map<String, Object> _userParameter) { //Give prefix to the matter number which is allocated in IM-Workflow standard String matterNumber = null; String prefix = "p"; try { matterNumber = prefix + WorkflowNumberingManager.getNumber(); } catch (WorkflowException e) { throw KaidenRuntimeException.makeInstance(e); } return matterNumber; } }
Matter Numer Allocation Process Setting File¶
It adds setting to matter number allocation process setting file.Setting files is [WEB-INF/classes/jp/co/slcs/kaiden2/product_workflow/ImwNumberingSettings.xml]Please specify the registration name for DI container to tag, and the message ID to be displayed in the matter numbering class drop down of application form master maintenance screen to messageid.<?xml version="1.0" encoding="UTF-8" standalone="no"?> <imwNumberingSettings xmlns="http://kaiden.slcs.co.jp/xmlschema/imwNumberingSettings"> <!-- matter number allocation class --> <wofkflowMatterNumberingClasses> <wofkflowMatterNumberingClass> <!-- matter number allocation class (registration name for DI container) --> <id>imwNumbering</id> <!-- description (product_workflow_message.xml entry--> <messageId>PWKF.defultNumberingClass</messageId> </wofkflowMatterNumberingClass> <wofkflowMatterNumberingClass> <!-- matter number allocation class (registration name for DI container) --> <id>imwNumberingExt</id> <messageId>TTRL.extensionNumberingClass</messageId> </wofkflowMatterNumberingClass> </wofkflowMatterNumberingClasses> </imwNumberingSettings>Notes
Description about dicon file edition is omitted here.Please associate with [imwNumbering] and set the created matter number allocation process class to dicon.Notes
Description about message file edition is omitted here.