<?xml version="1.0" encoding="UTF-8"?>

<DeployScript>
  <Scripts>
    <KScript>
      <id>6cIzjiU6</id>
      <number>convertPlugin</number>
      <cmb_ftype></cmb_ftype>
      <scripttype>10</scripttype>
      <context><![CDATA[import { AbstractConvertPlugIn } from "@cosmic/bos-core/kd/bos/entity/botp/plugin";
import { AfterCreateTargetEventArgs, AfterFieldMappingEventArgs, AfterConvertEventArgs } from "@cosmic/bos-core/kd/bos/entity/botp/plugin/args";

class MyPlugin extends AbstractConvertPlugIn {

    /**
     * Event after creating the target document data packet: Pass the created target document according to the split rules to the plugin
     */
    afterCreateTarget(e: AfterCreateTargetEventArgs): void {
        super.afterCreateTarget(e);
        //...
    }

    /**
     * Event after target fields are assigned: The plugin can continue to fill in the target fields based on this
     */
    afterFieldMapping(e: AfterFieldMappingEventArgs): void {
        super.afterFieldMapping(e);
        //...
    }

    /**
     * Event after document conversion, executed last: The plugin can make final modifications to the generated target document data in this event
     */
    afterConvert(e: AfterConvertEventArgs): void {
        super.afterConvert(e);
        //...
    }

}

let plugin = new MyPlugin();

export { plugin };
]]></context>
      <bizappid>0a1f79d7000000ac</bizappid>
      <bizunitid>11FUEXZBA3UJ</bizunitid>
      <scriptname>convert_rules_model</scriptname>
      <creater_id>13466739</creater_id>
      <createdate>1710489205000</createdate>
      <modifydate>1724317676850</modifydate>
      <modifier_id>13466739</modifier_id>
      <isv>kingdee</isv>
      <classname>@cosmic/dev/ide/mainpage/plugins/convertplugin.ts</classname>
      <enginetype>1</enginetype>
      <scriptmodule>@cosmic/dev</scriptmodule>
    </KScript>
  </Scripts>
  <BOSVersion>1.0</BOSVersion>
</DeployScript>
