udm-rules-vue 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +92 -0
- package/dist/EventBus.d.ts +70 -0
- package/dist/FileDeployPackageBuilder.d.ts +35 -0
- package/dist/FileSystemEventBus.d.ts +6 -0
- package/dist/FileUtils.d.ts +51 -0
- package/dist/RedoUndoManager.d.ts +15 -0
- package/dist/RuleFileWatcher.d.ts +14 -0
- package/dist/ServerRequestResponse.d.ts +29 -0
- package/dist/Url.d.ts +18 -0
- package/dist/WebviewCollection.d.ts +12 -0
- package/dist/ajax.d.ts +2 -0
- package/dist/assets/builtin/BasicObject.bom +22 -0
- package/dist/assets/builtin/BasicObject_zh_CN.voc +9 -0
- package/dist/assets/builtin/Constants.bom +9 -0
- package/dist/assets/builtin/Constants_zh_CN.voc +6 -0
- package/dist/assets/builtin/StaticMethod.bom +118 -0
- package/dist/assets/builtin/StaticMethod_zh_CN.voc +176 -0
- package/dist/assets/css/index.css +1 -0
- package/dist/authToken.d.ts +2 -0
- package/dist/bom/AttributeDialog.vue.d.ts +6 -0
- package/dist/bom/BomEditor.vue.d.ts +8 -0
- package/dist/bom/BomEditorComponent.vue.d.ts +3 -0
- package/dist/bom/BomWebEditor.d.ts +1 -0
- package/dist/bom/Category.vue.d.ts +6 -0
- package/dist/bom/CategoryDialog.vue.d.ts +6 -0
- package/dist/bom/ClassEditor.vue.d.ts +9 -0
- package/dist/bom/ClassMemberDialog.vue.d.ts +6 -0
- package/dist/bom/CustomProperty.vue.d.ts +7 -0
- package/dist/bom/DocumentationDialog.vue.d.ts +6 -0
- package/dist/bom/Domain.vue.d.ts +7 -0
- package/dist/bom/DomainDialog.vue.d.ts +6 -0
- package/dist/bom/EditTermDialog.vue.d.ts +6 -0
- package/dist/bom/FieldEditor.vue.d.ts +12 -0
- package/dist/bom/MethodEditor.vue.d.ts +11 -0
- package/dist/bom/MethodParameter.vue.d.ts +7 -0
- package/dist/bom/MethodParameterDialog.vue.d.ts +3 -0
- package/dist/bom/NameDialog.vue.d.ts +6 -0
- package/dist/bom/PureWebBomEditor.vue.d.ts +41 -0
- package/dist/bom/bomDeserialize.d.ts +28 -0
- package/dist/bom/bomRefactor.d.ts +2 -0
- package/dist/bom/bomSerialize.d.ts +2 -0
- package/dist/bom/model.d.ts +118 -0
- package/dist/bom/sync/SyncDialog.vue.d.ts +6 -0
- package/dist/bom/sync/VocabularySettleDialog.vue.d.ts +6 -0
- package/dist/bom/sync/bomCompare.d.ts +37 -0
- package/dist/bom/sync/sync.d.ts +6 -0
- package/dist/bom/sync/vocabularySettle.d.ts +3 -0
- package/dist/bom/vocabulary.d.ts +4 -0
- package/dist/bom/webview/BomDocument.d.ts +70 -0
- package/dist/bom/webview/BomEditorProvider.d.ts +39 -0
- package/dist/bom/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/brl/PureWebRuleEditor.vue.d.ts +56 -0
- package/dist/brl/RuleDocument.d.ts +69 -0
- package/dist/brl/RuleEditor.vue.d.ts +17 -0
- package/dist/brl/RuleEditorComponent.vue.d.ts +34 -0
- package/dist/brl/RuleEditorProvider.d.ts +30 -0
- package/dist/brl/RuleUtils.d.ts +12 -0
- package/dist/brl/RuleWebEditor.d.ts +1 -0
- package/dist/brl/edit/PropertyChangeEdit.d.ts +4 -0
- package/dist/brl/edit/ScriptChangeEdit.d.ts +4 -0
- package/dist/brl/webviewHTMLContent.d.ts +8 -0
- package/dist/command/CompileAndPackageCommand.d.ts +3 -0
- package/dist/command/CompileRuleFilesCommand.d.ts +20 -0
- package/dist/command/CopyLibFilesCommand.d.ts +5 -0
- package/dist/command/DeployRuleFileCommand.d.ts +3 -0
- package/dist/command/OpenCompiledFileCommand.d.ts +3 -0
- package/dist/command/PackageRuleFilesCommand.d.ts +5 -0
- package/dist/command/RefactorUuidCommand.d.ts +3 -0
- package/dist/command/ReloadBomFilesCommand.d.ts +3 -0
- package/dist/command/ServerUrlConfigCommand.d.ts +4 -0
- package/dist/command/UpdateUuidCommand.d.ts +3 -0
- package/dist/compile/DecisionTableCompiler.d.ts +43 -0
- package/dist/compile/DecisionTableRulePreview.d.ts +5 -0
- package/dist/compile/ExpressionBuilder.d.ts +24 -0
- package/dist/compile/FileCompiler.d.ts +6 -0
- package/dist/compile/FlowCompiler.d.ts +18 -0
- package/dist/compile/PureWebCompiler.d.ts +1 -0
- package/dist/compile/RuleCompiler.d.ts +7 -0
- package/dist/compile/compileRuleScript.d.ts +5 -0
- package/dist/completion/ActionCompletionBuilder.d.ts +4 -0
- package/dist/completion/BatchConditionCompletionBuilder.d.ts +4 -0
- package/dist/completion/CompletionBuilder.d.ts +157 -0
- package/dist/completion/DatatypeAssertor.d.ts +16 -0
- package/dist/completion/ExpressionCompletionBuilder.d.ts +7 -0
- package/dist/completion/ObjectNameCompletionBuilder.d.ts +5 -0
- package/dist/completion/ObjectVariableAndMethodCompletion.d.ts +12 -0
- package/dist/completion/RuleKeyCompletionBuilder.d.ts +7 -0
- package/dist/completion/builder/BatchDeclareCompletionDataBuilder.d.ts +2 -0
- package/dist/completion/builder/CurrentItemCompletionDataBuilder.d.ts +9 -0
- package/dist/completion/builder/EnumCompletionItemBuilder.d.ts +7 -0
- package/dist/completion/builder/MethodCompletionDataBuilder.d.ts +8 -0
- package/dist/completion/builder/VariableCompletionItemBuilder.d.ts +9 -0
- package/dist/completion/configure/ArithOperatorHintBuilder.d.ts +12 -0
- package/dist/completion/configure/EnumHintBuilder.d.ts +8 -0
- package/dist/completion/configure/HintConfigBuilder.d.ts +52 -0
- package/dist/completion/configure/LiteralHintBuilder.d.ts +11 -0
- package/dist/completion/configure/MethodHintBuilder.d.ts +18 -0
- package/dist/completion/configure/ObjectHintBuilder.d.ts +10 -0
- package/dist/completion/configure/PlaceholderHintBuilder.d.ts +11 -0
- package/dist/completion/configure/VariableHintBuilder.d.ts +11 -0
- package/dist/completion/hint/HintCompletionBuilder.d.ts +11 -0
- package/dist/completion/hint/MethodCompletionBuilder.d.ts +9 -0
- package/dist/completion/hint/ObjectCompletionBuilder.d.ts +8 -0
- package/dist/completion/hint/ObjectNameCompletionBuilder.d.ts +7 -0
- package/dist/completion/hint/PlaceHolderCompletionBuilder.d.ts +5 -0
- package/dist/completion/hint/VariableCompletionBuilder.d.ts +7 -0
- package/dist/components/datatype/DatatypeSelectUtils.d.ts +13 -0
- package/dist/components/datatype/SelectDatatypeDialog.vue.d.ts +6 -0
- package/dist/components/form/TagInput.vue.d.ts +13 -0
- package/dist/components/menu/Item.vue.d.ts +9 -0
- package/dist/components/menu/Menu.vue.d.ts +8 -0
- package/dist/components/menu/MultiItem.vue.d.ts +12 -0
- package/dist/components/menu/events.d.ts +4 -0
- package/dist/components/menu/types.d.ts +15 -0
- package/dist/components/message/Dialog.vue.d.ts +36 -0
- package/dist/components/message/Message.vue.d.ts +8 -0
- package/dist/components/message/events.d.ts +19 -0
- package/dist/components/process/Connection.d.ts +196 -0
- package/dist/components/process/Menu.d.ts +12 -0
- package/dist/components/process/MenuItemFactory.d.ts +5 -0
- package/dist/components/process/MergeGroup.d.ts +12 -0
- package/dist/components/process/Process.d.ts +108 -0
- package/dist/components/process/ProcessNode.d.ts +340 -0
- package/dist/components/process/Tooltip.d.ts +20 -0
- package/dist/components/process/colors.d.ts +2 -0
- package/dist/components/process/events.d.ts +10 -0
- package/dist/components/process/types.d.ts +11 -0
- package/dist/components/select/Select.vue.d.ts +21 -0
- package/dist/components/select/SelectItem.d.ts +7 -0
- package/dist/components/splitter/HoizontalSplitter.vue.d.ts +34 -0
- package/dist/components/splitter/VerticalSplitter.vue.d.ts +43 -0
- package/dist/components/tab/Tab.vue.d.ts +27 -0
- package/dist/components/tree/TreeNode.vue.d.ts +31 -0
- package/dist/connect/Connect.vue.d.ts +3 -0
- package/dist/connect/ConnectComponent.vue.d.ts +3 -0
- package/dist/connect/ConnectProvider.d.ts +6 -0
- package/dist/connect/ConnectWebEditor.d.ts +1 -0
- package/dist/connect/webviewHTMLContent.d.ts +8 -0
- package/dist/content.d.ts +25 -0
- package/dist/dispose.d.ts +9 -0
- package/dist/dta/DecisionTableComponent.vue.d.ts +37 -0
- package/dist/dta/DecisionTableDeserialize.d.ts +3 -0
- package/dist/dta/DecisionTableEditor.vue.d.ts +20 -0
- package/dist/dta/DecisionTableSerialize.d.ts +2 -0
- package/dist/dta/DecisionTableUtils.d.ts +19 -0
- package/dist/dta/DecisionTableWebEditor.d.ts +1 -0
- package/dist/dta/DynamicEditableController.d.ts +46 -0
- package/dist/dta/PureWebDecisionTableEditor.vue.d.ts +59 -0
- package/dist/dta/component/ColumnNameBuilder.d.ts +2 -0
- package/dist/dta/component/DecisionTable.d.ts +136 -0
- package/dist/dta/component/DecisionTableCrossHeader.d.ts +11 -0
- package/dist/dta/component/DecisionTableHeader.d.ts +30 -0
- package/dist/dta/component/DecisionTableRowIndicate.d.ts +27 -0
- package/dist/dta/component/contentContextMenuEvent.d.ts +3 -0
- package/dist/dta/component/edit/ContentChangeEdit.d.ts +11 -0
- package/dist/dta/component/edit/DeleteHeaderEdit.d.ts +7 -0
- package/dist/dta/component/edit/DeleteRowEdit.d.ts +7 -0
- package/dist/dta/component/edit/HeaderChangeEdit.d.ts +7 -0
- package/dist/dta/component/edit/HeaderWidthChangeEdit.d.ts +9 -0
- package/dist/dta/component/edit/InsertHeaderEdit.d.ts +7 -0
- package/dist/dta/component/edit/InsertRowEdit.d.ts +7 -0
- package/dist/dta/component/edit/RowHeightChangeEdit.d.ts +9 -0
- package/dist/dta/component/edit/RowMoveEdit.d.ts +7 -0
- package/dist/dta/component/edit/StyleChangeEdit.d.ts +16 -0
- package/dist/dta/component/headerContextMenuEvent.d.ts +2 -0
- package/dist/dta/component/operationContextMenuBuilder.d.ts +4 -0
- package/dist/dta/component/operator/ColumnDelete.d.ts +10 -0
- package/dist/dta/component/operator/ColumnInsert.d.ts +14 -0
- package/dist/dta/component/operator/HeaderChange.d.ts +15 -0
- package/dist/dta/component/operator/MergeSelectedCells.d.ts +8 -0
- package/dist/dta/component/operator/ModelInitializer.d.ts +18 -0
- package/dist/dta/component/operator/RowDelete.d.ts +14 -0
- package/dist/dta/component/operator/RowInsert.d.ts +32 -0
- package/dist/dta/component/operator/SplitSelectedCell.d.ts +7 -0
- package/dist/dta/component/operator/SubHeaderBuilder.d.ts +18 -0
- package/dist/dta/component/operator/styleImpose.d.ts +3 -0
- package/dist/dta/dialog/CellStyleDialog.vue.d.ts +28 -0
- package/dist/dta/dialog/EditColumnDialog.vue.d.ts +8 -0
- package/dist/dta/dialog/Style.vue.d.ts +11 -0
- package/dist/dta/dialog/events.d.ts +2 -0
- package/dist/dta/model/ActionItem.d.ts +12 -0
- package/dist/dta/model/Cell.d.ts +59 -0
- package/dist/dta/model/ConditionItem.d.ts +37 -0
- package/dist/dta/model/DecisionTableModel.d.ts +89 -0
- package/dist/dta/model/Definition.d.ts +31 -0
- package/dist/dta/model/HeaderCell.d.ts +16 -0
- package/dist/dta/model/Item.d.ts +31 -0
- package/dist/dta/model/ItemCell.d.ts +46 -0
- package/dist/dta/model/Partition.d.ts +20 -0
- package/dist/dta/model/ResourceData.d.ts +7 -0
- package/dist/dta/model/Style.d.ts +19 -0
- package/dist/dta/model/SubHeader.d.ts +15 -0
- package/dist/dta/webview/DecisionTableDocument.d.ts +68 -0
- package/dist/dta/webview/DecisionTableEditorProvider.d.ts +31 -0
- package/dist/dta/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/dtr/DecisionTreeComponent.vue.d.ts +39 -0
- package/dist/dtr/DecisionTreeEditor.vue.d.ts +21 -0
- package/dist/dtr/DecisionTreeWebEditor.d.ts +1 -0
- package/dist/dtr/PureWebDecisionTreeEditor.vue.d.ts +61 -0
- package/dist/dtr/designer/ActionInsert.d.ts +14 -0
- package/dist/dtr/designer/ConditionDelete.d.ts +5 -0
- package/dist/dtr/designer/ConditionInsert.d.ts +16 -0
- package/dist/dtr/designer/ConfigDialog.vue.d.ts +6 -0
- package/dist/dtr/designer/LabelDialog.vue.d.ts +6 -0
- package/dist/dtr/designer/NodeConnection.d.ts +21 -0
- package/dist/dtr/designer/PlaceholderEditableController.d.ts +66 -0
- package/dist/dtr/designer/TextBlock.d.ts +20 -0
- package/dist/dtr/designer/TreeDesigner.d.ts +75 -0
- package/dist/dtr/designer/TreeNode.d.ts +53 -0
- package/dist/dtr/designer/layout.d.ts +16 -0
- package/dist/dtr/designer/treeNodeBuilder.d.ts +18 -0
- package/dist/dtr/webview/DecisionTreeDocument.d.ts +68 -0
- package/dist/dtr/webview/DecisionTreeEditorProvider.d.ts +31 -0
- package/dist/dtr/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/extension.d.ts +10 -0
- package/dist/flowFileLoader.d.ts +7 -0
- package/dist/grammar/CaretTokenDetection.d.ts +123 -0
- package/dist/grammar/DatatypeBuilder.d.ts +16 -0
- package/dist/grammar/LexerTokenConsumer.d.ts +27 -0
- package/dist/grammar/MethodHelper.d.ts +43 -0
- package/dist/grammar/ParserException.d.ts +3 -0
- package/dist/grammar/ParserHelper.d.ts +80 -0
- package/dist/grammar/SearchMethod.d.ts +15 -0
- package/dist/grammar/TokenAssertor.d.ts +34 -0
- package/dist/grammar/bom/BomLexer.d.ts +55 -0
- package/dist/grammar/bom/BomParser.d.ts +656 -0
- package/dist/grammar/bom/BomParserListener.d.ts +492 -0
- package/dist/grammar/bom/BomParserVisitor.d.ts +298 -0
- package/dist/grammar/diagnostic/ExpressionSemanticErrorBuild.d.ts +4 -0
- package/dist/grammar/diagnostic/GrammarDiagnostic.d.ts +20 -0
- package/dist/grammar/diagnostic/GrammarErrorListener.d.ts +20 -0
- package/dist/grammar/diagnostic/SemanticDiagnostic.d.ts +25 -0
- package/dist/grammar/parser/BoostRuleLexer.d.ts +21 -0
- package/dist/grammar/parser/BoostRuleParser.d.ts +57 -0
- package/dist/grammar/parser/MethodSearchForParser.d.ts +16 -0
- package/dist/grammar/rule/RuleLexer.d.ts +89 -0
- package/dist/grammar/rule/RuleParser.d.ts +537 -0
- package/dist/grammar/rule/RuleParserListener.d.ts +436 -0
- package/dist/grammar/rule/RuleParserVisitor.d.ts +264 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +161109 -0
- package/dist/index.umd.js +887 -0
- package/dist/java-C_jlkwoG.js +238 -0
- package/dist/model/BO.d.ts +281 -0
- package/dist/model/BomFilesReader.d.ts +13 -0
- package/dist/model/Datatype.d.ts +84 -0
- package/dist/model/NavigationTree.d.ts +207 -0
- package/dist/model/PureWebBomFilesReader.d.ts +13 -0
- package/dist/model/RuleProperty.d.ts +6 -0
- package/dist/model/VarFilesReader.d.ts +9 -0
- package/dist/model/VocFilesReader.d.ts +77 -0
- package/dist/model/VscodeBomFilesReader.d.ts +2 -0
- package/dist/model/VscodeBuiltinObjectsLoader.d.ts +14 -0
- package/dist/model/WebBuiltinObjectsLoader.d.ts +13 -0
- package/dist/model/WebViewBomFilesReader.d.ts +1 -0
- package/dist/model/datatypeCompatibility.d.ts +2 -0
- package/dist/model/domainValidate.d.ts +5 -0
- package/dist/model/expression/ArithExpression.d.ts +17 -0
- package/dist/model/expression/BatchExpression.d.ts +14 -0
- package/dist/model/expression/CharExpression.d.ts +6 -0
- package/dist/model/expression/CurrentObjectExpression.d.ts +9 -0
- package/dist/model/expression/DateExpression.d.ts +6 -0
- package/dist/model/expression/DateTimeExpression.d.ts +6 -0
- package/dist/model/expression/EnumExpression.d.ts +8 -0
- package/dist/model/expression/Expression.d.ts +8 -0
- package/dist/model/expression/MethodExpression.d.ts +12 -0
- package/dist/model/expression/NumberExpression.d.ts +6 -0
- package/dist/model/expression/ObjectExpression.d.ts +7 -0
- package/dist/model/expression/PlaceholderExpression.d.ts +20 -0
- package/dist/model/expression/PredefineExpression.d.ts +25 -0
- package/dist/model/expression/RuleExpression.d.ts +18 -0
- package/dist/model/expression/StringExpression.d.ts +7 -0
- package/dist/model/expression/TimeExpression.d.ts +6 -0
- package/dist/model/expression/VariableExpression.d.ts +10 -0
- package/dist/model/expression/compile/commonMethodScriptCompile.d.ts +4 -0
- package/dist/model/expression/compile/compareMethodScriptCompile.d.ts +4 -0
- package/dist/monaco/ExpressionFinder.d.ts +32 -0
- package/dist/monaco/MonacoCodeEditor.d.ts +34 -0
- package/dist/monaco/MonacoCompletionProvider.d.ts +10 -0
- package/dist/monaco/MonacoDefinitionProvider.d.ts +7 -0
- package/dist/monaco/MonacoDiagnosticsBuilder.d.ts +21 -0
- package/dist/monaco/MonacoEditorOpener.d.ts +4 -0
- package/dist/monaco/MonacoHoverProvider.d.ts +16 -0
- package/dist/monaco/MonacoJavaEditor.d.ts +2 -0
- package/dist/monaco/MonacoLanguageConfiguration.d.ts +3 -0
- package/dist/monaco/MonacoLinkProvider.d.ts +7 -0
- package/dist/monaco/MonacoSemanticTokensProvider.d.ts +11 -0
- package/dist/monaco/MonacoTokenStyleRules.d.ts +3 -0
- package/dist/monaco/MonacoWorkerInitialize.d.ts +2 -0
- package/dist/monaco/ReadonlyMonacoCodeEditor.d.ts +6 -0
- package/dist/monaco/buildTargetPartExpressionSemantics.d.ts +31 -0
- package/dist/monaco/customMonaco.d.ts +2 -0
- package/dist/monaco/parseTargetPartRuleScript.d.ts +13 -0
- package/dist/projectprops/Category.vue.d.ts +8 -0
- package/dist/projectprops/Parameter.vue.d.ts +8 -0
- package/dist/projectprops/ProjectProperties.d.ts +33 -0
- package/dist/projectprops/ProjectPropertiesEditor.d.ts +1 -0
- package/dist/projectprops/ProjectPropertiesEditor.vue.d.ts +8 -0
- package/dist/projectprops/ProjectPropertiesEditorComponent.vue.d.ts +3 -0
- package/dist/projectprops/PureWebProjectPropertiesEditor.vue.d.ts +41 -0
- package/dist/projectprops/webview/ProjectPropertiesDocument.d.ts +67 -0
- package/dist/projectprops/webview/ProjectPropertiesEditorProvider.d.ts +26 -0
- package/dist/projectprops/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/quicktest/Log.d.ts +49 -0
- package/dist/quicktest/LogDashboard.vue.d.ts +8 -0
- package/dist/quicktest/LogDialog.vue.d.ts +6 -0
- package/dist/quicktest/OutputDashboard.vue.d.ts +7 -0
- package/dist/quicktest/PasteJsonDialog.vue.d.ts +6 -0
- package/dist/quicktest/QuickTestDialog.vue.d.ts +7 -0
- package/dist/quicktest/TestUtils.d.ts +42 -0
- package/dist/quicktest/VariableForm.vue.d.ts +11 -0
- package/dist/refactor/DecisionTableFileRefactor.d.ts +6 -0
- package/dist/refactor/FileRefactor.d.ts +63 -0
- package/dist/refactor/FlowFileRefactor.d.ts +7 -0
- package/dist/refactor/RuleFileRefactor.d.ts +5 -0
- package/dist/rfl/FlowProcess.d.ts +56 -0
- package/dist/rfl/FlowProperties.d.ts +7 -0
- package/dist/rfl/MenuFactory.d.ts +7 -0
- package/dist/rfl/RuleFlowEditor.d.ts +0 -0
- package/dist/rfl/config/Common.d.ts +6 -0
- package/dist/rfl/config/Enums.d.ts +9 -0
- package/dist/rfl/config/TaskAction.d.ts +29 -0
- package/dist/rfl/config/Url.d.ts +1 -0
- package/dist/rfl/data/ActionNodeData.d.ts +44 -0
- package/dist/rfl/data/BranchNodeData.d.ts +12 -0
- package/dist/rfl/data/ConnectionData.d.ts +60 -0
- package/dist/rfl/data/ForkNodeData.d.ts +12 -0
- package/dist/rfl/data/JoinNodeData.d.ts +12 -0
- package/dist/rfl/data/NodeData.d.ts +27 -0
- package/dist/rfl/data/RuleFile.d.ts +67 -0
- package/dist/rfl/data/RuleNodeData.d.ts +174 -0
- package/dist/rfl/data/StartNodeData.d.ts +38 -0
- package/dist/rfl/data/StopNodeData.d.ts +38 -0
- package/dist/rfl/data/SubflowNodeData.d.ts +40 -0
- package/dist/rfl/data/TaskNodeData.d.ts +17 -0
- package/dist/rfl/definition/ConnectionDef.d.ts +31 -0
- package/dist/rfl/definition/JsonUtils.d.ts +67 -0
- package/dist/rfl/definition/ProcessDef.d.ts +191 -0
- package/dist/rfl/definition/ProcessNodeDef.d.ts +145 -0
- package/dist/rfl/definition/node/ActionTaskNodeDef.d.ts +74 -0
- package/dist/rfl/definition/node/BasicNodeDef.d.ts +15 -0
- package/dist/rfl/definition/node/BranchNodeDef.d.ts +40 -0
- package/dist/rfl/definition/node/ConnectionFactoryDef.d.ts +10 -0
- package/dist/rfl/definition/node/FlowConnectionDef.d.ts +58 -0
- package/dist/rfl/definition/node/FlowProcessNodeDef.d.ts +98 -0
- package/dist/rfl/definition/node/ForkNodeDef.d.ts +40 -0
- package/dist/rfl/definition/node/JoinNodeDef.d.ts +40 -0
- package/dist/rfl/definition/node/NodeType.d.ts +70 -0
- package/dist/rfl/definition/node/RuleTaskNodeDef.d.ts +62 -0
- package/dist/rfl/definition/node/StartTaskNodeDef.d.ts +71 -0
- package/dist/rfl/definition/node/StopTaskNodeDef.d.ts +71 -0
- package/dist/rfl/definition/node/SubflowTaskNodeDef.d.ts +55 -0
- package/dist/rfl/definition/node/TaskNodeDef.d.ts +31 -0
- package/dist/rfl/designer/Designer.vue.d.ts +38 -0
- package/dist/rfl/designer/DesignerComponent.vue.d.ts +59 -0
- package/dist/rfl/designer/ProcessUtils.d.ts +6 -0
- package/dist/rfl/designer/PureWebFlowEditor.vue.d.ts +81 -0
- package/dist/rfl/designer/editor/ConnectionEditor.vue.d.ts +8 -0
- package/dist/rfl/designer/editor/FlowEditor.vue.d.ts +3 -0
- package/dist/rfl/designer/editor/NodeEditor.vue.d.ts +3 -0
- package/dist/rfl/designer/editor/NodeList.vue.d.ts +9 -0
- package/dist/rfl/designer/editor/ProcessEditor.vue.d.ts +8 -0
- package/dist/rfl/en.d.ts +14 -0
- package/dist/rfl/events.d.ts +21 -0
- package/dist/rfl/node/ActionTaskNode.d.ts +22 -0
- package/dist/rfl/node/BasicNode.d.ts +8 -0
- package/dist/rfl/node/BranchNode.d.ts +48 -0
- package/dist/rfl/node/ConnectionFactory.d.ts +10 -0
- package/dist/rfl/node/FlowConnection.d.ts +45 -0
- package/dist/rfl/node/FlowProcessNode.d.ts +128 -0
- package/dist/rfl/node/ForkNode.d.ts +54 -0
- package/dist/rfl/node/JoinNode.d.ts +54 -0
- package/dist/rfl/node/NodeUtils.d.ts +15 -0
- package/dist/rfl/node/ProcessNodeFactory.d.ts +41 -0
- package/dist/rfl/node/RuleTaskNode.d.ts +76 -0
- package/dist/rfl/node/StartTaskNode.d.ts +74 -0
- package/dist/rfl/node/StopTaskNode.d.ts +84 -0
- package/dist/rfl/node/SubflowTaskNode.d.ts +70 -0
- package/dist/rfl/node/TaskNode.d.ts +42 -0
- package/dist/rfl/props/ActionNodeProperty.vue.d.ts +12 -0
- package/dist/rfl/props/BranchNodeProperty.vue.d.ts +10 -0
- package/dist/rfl/props/ConnectionProperty.vue.d.ts +5 -0
- package/dist/rfl/props/FlowFileSelectDialog.vue.d.ts +6 -0
- package/dist/rfl/props/ForkNodeProperty.vue.d.ts +10 -0
- package/dist/rfl/props/JoinNodeProperty.vue.d.ts +10 -0
- package/dist/rfl/props/RuleFileSelectDialog.vue.d.ts +8 -0
- package/dist/rfl/props/RuleNodeProperty.vue.d.ts +11 -0
- package/dist/rfl/props/StartNodeProperty.vue.d.ts +10 -0
- package/dist/rfl/props/StopNodeProperty.vue.d.ts +10 -0
- package/dist/rfl/props/SubflowNodeProperty.vue.d.ts +11 -0
- package/dist/rfl/utils/Msg.d.ts +5 -0
- package/dist/rfl/utils/Utils.d.ts +43 -0
- package/dist/rfl/utils/XMLUtils.d.ts +59 -0
- package/dist/rfl/webview/RuleFlowDocument.d.ts +68 -0
- package/dist/rfl/webview/RuleFlowEditorProvider.d.ts +33 -0
- package/dist/rfl/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/rfl/zh.d.ts +14 -0
- package/dist/sca/webview/ScoreCardDocument.d.ts +68 -0
- package/dist/sca/webview/ScoreCardEditorProvider.d.ts +31 -0
- package/dist/sca/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/server/TestBomFilesLoader.d.ts +13 -0
- package/dist/server/TestFlowFileLoader.d.ts +22 -0
- package/dist/server/server.d.ts +1 -0
- package/dist/sync/ProjectSync.vue.d.ts +6 -0
- package/dist/sync/ProjectSyncDocument.d.ts +67 -0
- package/dist/sync/ProjectSyncEditor.vue.d.ts +3 -0
- package/dist/sync/ProjectSyncEditorComponent.vue.d.ts +3 -0
- package/dist/sync/ProjectSyncEditorProvider.d.ts +28 -0
- package/dist/sync/ProjectSyncEntryBuilder.d.ts +65 -0
- package/dist/sync/ProjectSyncWebEditor.d.ts +1 -0
- package/dist/sync/SyncEntry.d.ts +11 -0
- package/dist/sync/SyncFileUitls.d.ts +16 -0
- package/dist/sync/tree/TreeNode.vue.d.ts +31 -0
- package/dist/sync/webviewHTMLContent.d.ts +8 -0
- package/dist/tst/PredictFormDialog.vue.d.ts +6 -0
- package/dist/tst/PureWebTstEditor.vue.d.ts +41 -0
- package/dist/tst/ResponseDialog.vue.d.ts +6 -0
- package/dist/tst/TstEditor.vue.d.ts +8 -0
- package/dist/tst/TstEditorComponent.vue.d.ts +3 -0
- package/dist/tst/TstUtils.d.ts +30 -0
- package/dist/tst/TstWebEditor.d.ts +1 -0
- package/dist/tst/webview/TstDocument.d.ts +67 -0
- package/dist/tst/webview/TstEditorProvider.d.ts +30 -0
- package/dist/tst/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/utils.d.ts +104 -0
- package/dist/var/PureWebVariableEditor.vue.d.ts +41 -0
- package/dist/var/VariableEditor.vue.d.ts +8 -0
- package/dist/var/VariableEditorComponent.vue.d.ts +3 -0
- package/dist/var/VariableModel.d.ts +22 -0
- package/dist/var/VariableRefactorDialog.vue.d.ts +3 -0
- package/dist/var/VariableWebEditor.d.ts +1 -0
- package/dist/var/webview/VariableDocument.d.ts +67 -0
- package/dist/var/webview/VariableEditorProvider.d.ts +38 -0
- package/dist/var/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/view&document.d.ts +9 -0
- package/dist/webviewFiles.d.ts +42 -0
- package/dist/webviewFilesOperator.d.ts +24 -0
- package/package.json +88 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TaskAction } from '../config/TaskAction';
|
|
2
|
+
import { ActionLanguage } from '../config/Enums';
|
|
3
|
+
import { default as TaskNodeData } from './TaskNodeData';
|
|
4
|
+
import { TaskNodeType } from '../definition/node/NodeType';
|
|
5
|
+
/**
|
|
6
|
+
* 停止节点数据类
|
|
7
|
+
* 存储停止任务节点的相关数据和配置
|
|
8
|
+
*/
|
|
9
|
+
export default class StopNodeData extends TaskNodeData {
|
|
10
|
+
/** 动作配置 */
|
|
11
|
+
actions: TaskAction;
|
|
12
|
+
/**
|
|
13
|
+
* 构造函数
|
|
14
|
+
* @param name 节点名称
|
|
15
|
+
*/
|
|
16
|
+
constructor(name: string);
|
|
17
|
+
/**
|
|
18
|
+
* 获取动作配置
|
|
19
|
+
* @returns 动作配置对象
|
|
20
|
+
*/
|
|
21
|
+
getActions(): TaskAction;
|
|
22
|
+
/**
|
|
23
|
+
* 设置动作配置
|
|
24
|
+
* @param language 动作语言
|
|
25
|
+
* @param actions 动作内容
|
|
26
|
+
*/
|
|
27
|
+
setActions(language: ActionLanguage, actions: string): void;
|
|
28
|
+
/**
|
|
29
|
+
* 获取任务节点类型
|
|
30
|
+
* @returns 停止任务节点类型
|
|
31
|
+
*/
|
|
32
|
+
getTaskNodeType(): TaskNodeType;
|
|
33
|
+
/**
|
|
34
|
+
* 转换为XML格式
|
|
35
|
+
* @returns XML字符串
|
|
36
|
+
*/
|
|
37
|
+
toXml(): string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ActionLanguage } from '../config/Enums';
|
|
2
|
+
import { TaskAction } from '../config/TaskAction';
|
|
3
|
+
import { TaskNodeType } from '../definition/node/NodeType';
|
|
4
|
+
import { default as TaskNodeData } from './TaskNodeData';
|
|
5
|
+
/**
|
|
6
|
+
* 子流程节点数据类
|
|
7
|
+
* 存储子流程任务节点的相关数据和配置
|
|
8
|
+
*/
|
|
9
|
+
export default class SubflowNodeData extends TaskNodeData {
|
|
10
|
+
/** 子流程ID */
|
|
11
|
+
subflowId: string;
|
|
12
|
+
/** 子流程路径 */
|
|
13
|
+
subflowPath: string;
|
|
14
|
+
/** 初始动作配置 */
|
|
15
|
+
initialActions: TaskAction;
|
|
16
|
+
/** 最终动作配置 */
|
|
17
|
+
finalActions: TaskAction;
|
|
18
|
+
/**
|
|
19
|
+
* 设置初始动作配置
|
|
20
|
+
* @param language 动作语言
|
|
21
|
+
* @param actions 动作内容
|
|
22
|
+
*/
|
|
23
|
+
setInitialActions(language: ActionLanguage, actions: string): void;
|
|
24
|
+
/**
|
|
25
|
+
* 设置最终动作配置
|
|
26
|
+
* @param language 动作语言
|
|
27
|
+
* @param actions 动作内容
|
|
28
|
+
*/
|
|
29
|
+
setFinalActions(language: ActionLanguage, actions: string): void;
|
|
30
|
+
/**
|
|
31
|
+
* 获取任务节点类型
|
|
32
|
+
* @returns 子流程任务节点类型
|
|
33
|
+
*/
|
|
34
|
+
getTaskNodeType(): TaskNodeType;
|
|
35
|
+
/**
|
|
36
|
+
* 转换为XML格式
|
|
37
|
+
* @returns XML字符串
|
|
38
|
+
*/
|
|
39
|
+
toXml(): string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TaskNodeType } from '../definition/node/NodeType';
|
|
2
|
+
import { default as NodeData } from './NodeData';
|
|
3
|
+
/**
|
|
4
|
+
* 任务节点数据抽象基类
|
|
5
|
+
* 定义任务节点数据的基本属性和方法
|
|
6
|
+
*/
|
|
7
|
+
export default abstract class TaskNodeData extends NodeData {
|
|
8
|
+
/**
|
|
9
|
+
* 获取任务节点类型
|
|
10
|
+
* @returns 任务节点类型枚举值
|
|
11
|
+
*/
|
|
12
|
+
abstract getTaskNodeType(): TaskNodeType;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 默认任务节点ID
|
|
16
|
+
*/
|
|
17
|
+
export declare const DEFAULT_TASK_NODE_ID: string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as ProcessNodeDef } from './ProcessNodeDef';
|
|
2
|
+
/**
|
|
3
|
+
* 连接定义类
|
|
4
|
+
* 定义流程中两个节点之间的连接关系
|
|
5
|
+
*/
|
|
6
|
+
export default class ConnectionDef {
|
|
7
|
+
/** 绑定连接常量 */
|
|
8
|
+
static readonly BINDING_CONNECTION = "binding_connection";
|
|
9
|
+
/** 连接名称 */
|
|
10
|
+
private name;
|
|
11
|
+
/** 起始节点定义 */
|
|
12
|
+
startNode: ProcessNodeDef;
|
|
13
|
+
/** 结束节点定义 */
|
|
14
|
+
endNode: ProcessNodeDef;
|
|
15
|
+
/**
|
|
16
|
+
* 构造函数
|
|
17
|
+
* @param startNode 起始节点定义
|
|
18
|
+
* @param endNode 结束节点定义
|
|
19
|
+
*/
|
|
20
|
+
constructor(startNode: ProcessNodeDef, endNode: ProcessNodeDef);
|
|
21
|
+
/**
|
|
22
|
+
* 设置连接名称
|
|
23
|
+
* @param name 连接名称
|
|
24
|
+
*/
|
|
25
|
+
setName(name: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* 获取连接名称
|
|
28
|
+
* @returns 连接名称
|
|
29
|
+
*/
|
|
30
|
+
getName(): string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* XML节点接口定义
|
|
3
|
+
*/
|
|
4
|
+
interface XmlNode {
|
|
5
|
+
$?: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
_?: string;
|
|
9
|
+
tagName?: string;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 资源集合节点接口
|
|
14
|
+
*/
|
|
15
|
+
interface ResourceSetNode {
|
|
16
|
+
Data: XmlNode[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 任务列表节点接口
|
|
20
|
+
*/
|
|
21
|
+
interface TaskListNode {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 转换列表节点接口
|
|
26
|
+
*/
|
|
27
|
+
interface TransitionListNode {
|
|
28
|
+
Transition: XmlNode[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 获取父节点的所有子节点
|
|
32
|
+
* @param parentNode 父节点对象
|
|
33
|
+
* @returns 子节点数组
|
|
34
|
+
*/
|
|
35
|
+
export declare function getChildNodes(parentNode: any): XmlNode[];
|
|
36
|
+
/**
|
|
37
|
+
* 获取任务节点的位置信息
|
|
38
|
+
* @param resourceSetNode 资源集合节点
|
|
39
|
+
* @param nodeName 节点名称
|
|
40
|
+
* @returns 包含位置信息的对象
|
|
41
|
+
*/
|
|
42
|
+
export declare function getTaskNodePositionInfo(resourceSetNode: ResourceSetNode, nodeName: string): {
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
width: number;
|
|
46
|
+
height: number;
|
|
47
|
+
label: string | undefined;
|
|
48
|
+
documentation: string | undefined;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* 根据任务ID获取任务节点
|
|
52
|
+
* @param taskListNode 任务列表节点
|
|
53
|
+
* @param taskId 任务ID
|
|
54
|
+
* @returns 匹配的任务节点或undefined
|
|
55
|
+
*/
|
|
56
|
+
export declare function getTaskNode(taskListNode: TaskListNode, taskId: string): XmlNode | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* 获取转换节点(包括输出和输入)
|
|
59
|
+
* @param transitionListNode 转换列表节点
|
|
60
|
+
* @param nodeName 节点名称
|
|
61
|
+
* @returns 包含输出和输入转换节点的对象
|
|
62
|
+
*/
|
|
63
|
+
export declare function getTransitionNodes(transitionListNode: TransitionListNode, nodeName: string): {
|
|
64
|
+
outcomes: XmlNode[];
|
|
65
|
+
incomes: XmlNode[];
|
|
66
|
+
};
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { default as ProcessNodeDef } from './ProcessNodeDef';
|
|
2
|
+
import { default as FlowProperties } from '../FlowProperties';
|
|
3
|
+
import { FileInfo } from '../data/RuleFile';
|
|
4
|
+
/**
|
|
5
|
+
* 流程定义类
|
|
6
|
+
* 管理整个流程的所有节点、连接以及流程属性
|
|
7
|
+
*/
|
|
8
|
+
export default class ProcessDef {
|
|
9
|
+
/**
|
|
10
|
+
* 流程唯一标识符
|
|
11
|
+
*/
|
|
12
|
+
private uuid;
|
|
13
|
+
/**
|
|
14
|
+
* 流程名称
|
|
15
|
+
*/
|
|
16
|
+
private name;
|
|
17
|
+
/**
|
|
18
|
+
* 流程标签
|
|
19
|
+
*/
|
|
20
|
+
private tags;
|
|
21
|
+
/**
|
|
22
|
+
* 本地化设置
|
|
23
|
+
*/
|
|
24
|
+
private locale;
|
|
25
|
+
/**
|
|
26
|
+
* 快速测试数据
|
|
27
|
+
*/
|
|
28
|
+
private quickTestData;
|
|
29
|
+
/**
|
|
30
|
+
* 是否为主流程任务
|
|
31
|
+
*/
|
|
32
|
+
private mainFlowTask;
|
|
33
|
+
/**
|
|
34
|
+
* 节点映射表,用于存储所有流程节点
|
|
35
|
+
*/
|
|
36
|
+
private nodeMap;
|
|
37
|
+
/**
|
|
38
|
+
* 是否启用暗黑模式
|
|
39
|
+
*/
|
|
40
|
+
private darkMode;
|
|
41
|
+
/**
|
|
42
|
+
* 文件信息数组
|
|
43
|
+
*/
|
|
44
|
+
private filesInfo;
|
|
45
|
+
/**
|
|
46
|
+
* 路径信息数组
|
|
47
|
+
*/
|
|
48
|
+
private pathsInfo;
|
|
49
|
+
/**
|
|
50
|
+
* 文件路径映射表
|
|
51
|
+
*/
|
|
52
|
+
private filePathMap;
|
|
53
|
+
/**
|
|
54
|
+
* 流程属性
|
|
55
|
+
*/
|
|
56
|
+
private properties;
|
|
57
|
+
/**
|
|
58
|
+
* 添加起始节点
|
|
59
|
+
* @returns 起始节点实例
|
|
60
|
+
*/
|
|
61
|
+
protected doAddStartNode(): ProcessNodeDef;
|
|
62
|
+
/**
|
|
63
|
+
* 创建新的连接
|
|
64
|
+
* @param startNode 起始节点
|
|
65
|
+
* @param endNode 结束节点
|
|
66
|
+
*/
|
|
67
|
+
protected createNewConnection(startNode: ProcessNodeDef, endNode: ProcessNodeDef): void;
|
|
68
|
+
/**
|
|
69
|
+
* 获取流程名称
|
|
70
|
+
* @returns 流程名称
|
|
71
|
+
*/
|
|
72
|
+
getName(): string;
|
|
73
|
+
/**
|
|
74
|
+
* 设置流程名称
|
|
75
|
+
* @param name 流程名称
|
|
76
|
+
*/
|
|
77
|
+
setName(name: string): void;
|
|
78
|
+
/**
|
|
79
|
+
* 判断是否为主流程任务
|
|
80
|
+
* @returns 布尔值,true表示为主流程任务
|
|
81
|
+
*/
|
|
82
|
+
isMainFlowTask(): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* 判断是否启用暗黑模式
|
|
85
|
+
* @returns 布尔值,true表示启用暗黑模式
|
|
86
|
+
*/
|
|
87
|
+
isDarkMode(): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* 设置暗黑模式
|
|
90
|
+
* @param darkMode 是否启用暗黑模式
|
|
91
|
+
*/
|
|
92
|
+
setDarkMode(darkMode: boolean): void;
|
|
93
|
+
/**
|
|
94
|
+
* 获取节点映射表
|
|
95
|
+
* @returns 节点映射表
|
|
96
|
+
*/
|
|
97
|
+
getNodeMap(): Map<string, ProcessNodeDef>;
|
|
98
|
+
/**
|
|
99
|
+
* 根据ID获取节点
|
|
100
|
+
* @param id 节点ID
|
|
101
|
+
* @returns 对应的流程节点或null
|
|
102
|
+
*/
|
|
103
|
+
getNodeById(id: string): ProcessNodeDef | null;
|
|
104
|
+
/**
|
|
105
|
+
* 设置文件信息
|
|
106
|
+
* @param filesInfo 文件信息数组
|
|
107
|
+
*/
|
|
108
|
+
setFilesInfo(filesInfo: Array<FileInfo>): void;
|
|
109
|
+
/**
|
|
110
|
+
* 获取文件信息
|
|
111
|
+
* @returns 文件信息数组
|
|
112
|
+
*/
|
|
113
|
+
getFilesInfo(): Array<FileInfo>;
|
|
114
|
+
/**
|
|
115
|
+
* 设置路径信息
|
|
116
|
+
* @param pathsInfo 路径信息数组
|
|
117
|
+
*/
|
|
118
|
+
setPathsInfo(pathsInfo: Array<FileInfo>): void;
|
|
119
|
+
/**
|
|
120
|
+
* 根据UUID获取文件路径
|
|
121
|
+
* @param uuid 文件UUID
|
|
122
|
+
* @returns 文件路径,如果找不到则返回空字符串
|
|
123
|
+
*/
|
|
124
|
+
getFilePath(uuid: string): string;
|
|
125
|
+
/**
|
|
126
|
+
* 获取路径信息
|
|
127
|
+
* @returns 路径信息数组
|
|
128
|
+
*/
|
|
129
|
+
getPathsInfo(): Array<FileInfo>;
|
|
130
|
+
/**
|
|
131
|
+
* 获取流程UUID
|
|
132
|
+
* @returns 流程UUID
|
|
133
|
+
*/
|
|
134
|
+
getUuid(): string;
|
|
135
|
+
/**
|
|
136
|
+
* 设置流程UUID
|
|
137
|
+
* @param uuid 流程UUID
|
|
138
|
+
*/
|
|
139
|
+
setUuid(uuid: string): void;
|
|
140
|
+
/**
|
|
141
|
+
* 获取本地化设置
|
|
142
|
+
* @returns 本地化字符串
|
|
143
|
+
*/
|
|
144
|
+
getLocale(): string;
|
|
145
|
+
/**
|
|
146
|
+
* 获取标签
|
|
147
|
+
* @returns 标签字符串
|
|
148
|
+
*/
|
|
149
|
+
getTags(): string;
|
|
150
|
+
/**
|
|
151
|
+
* 设置标签
|
|
152
|
+
* @param tags 标签字符串
|
|
153
|
+
*/
|
|
154
|
+
setTags(tags: string): void;
|
|
155
|
+
/**
|
|
156
|
+
* 获取快速测试数据
|
|
157
|
+
* @returns 快速测试数据字符串
|
|
158
|
+
*/
|
|
159
|
+
getQuickTestData(): string;
|
|
160
|
+
/**
|
|
161
|
+
* 设置快速测试数据
|
|
162
|
+
* @param quickTestData 快速测试数据字符串
|
|
163
|
+
*/
|
|
164
|
+
setQuickTestData(quickTestData: string): void;
|
|
165
|
+
/**
|
|
166
|
+
* 获取流程属性
|
|
167
|
+
* @returns 流程属性对象
|
|
168
|
+
*/
|
|
169
|
+
getProperties(): FlowProperties;
|
|
170
|
+
/**
|
|
171
|
+
* 创建流程节点
|
|
172
|
+
* @param nodeType 节点类型
|
|
173
|
+
* @param nodeId 节点ID
|
|
174
|
+
* @param nodeName 节点名称
|
|
175
|
+
* @param taskId 任务ID
|
|
176
|
+
* @param taskNodeName 任务节点名称
|
|
177
|
+
* @returns 创建的流程节点实例
|
|
178
|
+
*/
|
|
179
|
+
createProcessNode(nodeType: string, nodeId: string, nodeName: string, taskId: string, taskNodeName: string): ProcessNodeDef | undefined;
|
|
180
|
+
/**
|
|
181
|
+
* 从JSON数据初始化流程
|
|
182
|
+
* @param root JSON根节点
|
|
183
|
+
* @param importType 导入类型
|
|
184
|
+
*/
|
|
185
|
+
initFromJson(root: any, importType: string): void;
|
|
186
|
+
/**
|
|
187
|
+
* 将流程转换为XML格式
|
|
188
|
+
* @returns XML字符串
|
|
189
|
+
*/
|
|
190
|
+
toXml(): string;
|
|
191
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { default as ConnectionDef } from './ConnectionDef';
|
|
2
|
+
import { default as ProcessDef } from './ProcessDef';
|
|
3
|
+
/**
|
|
4
|
+
* 流程节点定义基类
|
|
5
|
+
* 提供流程节点的基本属性和方法
|
|
6
|
+
*/
|
|
7
|
+
export default abstract class ProcessNodeDef {
|
|
8
|
+
/**
|
|
9
|
+
* 绑定节点常量
|
|
10
|
+
*/
|
|
11
|
+
static readonly BINDING_NODE = "binding_node";
|
|
12
|
+
/**
|
|
13
|
+
* 节点唯一标识符
|
|
14
|
+
*/
|
|
15
|
+
protected id: string;
|
|
16
|
+
/**
|
|
17
|
+
* 节点是否被选中
|
|
18
|
+
*/
|
|
19
|
+
protected selected: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* 所属流程定义
|
|
22
|
+
*/
|
|
23
|
+
process: ProcessDef;
|
|
24
|
+
/**
|
|
25
|
+
* 节点名称
|
|
26
|
+
*/
|
|
27
|
+
protected name: string;
|
|
28
|
+
/**
|
|
29
|
+
* 输入连接集合
|
|
30
|
+
*/
|
|
31
|
+
protected incomes: ConnectionDef[];
|
|
32
|
+
/**
|
|
33
|
+
* 输出连接集合
|
|
34
|
+
*/
|
|
35
|
+
protected outcomes: ConnectionDef[];
|
|
36
|
+
/**
|
|
37
|
+
* 节点X坐标位置
|
|
38
|
+
*/
|
|
39
|
+
protected positionX: number;
|
|
40
|
+
/**
|
|
41
|
+
* 节点Y坐标位置
|
|
42
|
+
*/
|
|
43
|
+
protected positionY: number;
|
|
44
|
+
/**
|
|
45
|
+
* 获取节点名称抽象方法
|
|
46
|
+
* @returns 节点名称字符串
|
|
47
|
+
*/
|
|
48
|
+
abstract getNodeName(): string;
|
|
49
|
+
/**
|
|
50
|
+
* 构造函数
|
|
51
|
+
* @param id 节点ID
|
|
52
|
+
* @param name 节点名称
|
|
53
|
+
* @param process 所属流程
|
|
54
|
+
* @param labelAlignRight 标签是否右对齐(可选)
|
|
55
|
+
*/
|
|
56
|
+
constructor(id: string, name: string, process: ProcessDef, labelAlignRight?: boolean);
|
|
57
|
+
/**
|
|
58
|
+
* 从JSON数据初始化节点抽象方法
|
|
59
|
+
* @param taskNode 任务节点数据
|
|
60
|
+
* @param taskDataNode 任务数据节点
|
|
61
|
+
* @param positionInfo 位置信息
|
|
62
|
+
* @param importType 导入类型
|
|
63
|
+
*/
|
|
64
|
+
abstract initFromJson(taskNode: any, taskDataNode: any, positionInfo: any, importType: string): void;
|
|
65
|
+
/**
|
|
66
|
+
* 获取绑定节点数据抽象方法
|
|
67
|
+
* @returns 绑定节点数据
|
|
68
|
+
*/
|
|
69
|
+
abstract getBindingNodeData(): any;
|
|
70
|
+
/**
|
|
71
|
+
* 添加输出连接抽象方法
|
|
72
|
+
* @param processNode 流程节点
|
|
73
|
+
*/
|
|
74
|
+
protected abstract addOutConnection(processNode: ProcessNodeDef): void;
|
|
75
|
+
/**
|
|
76
|
+
* 是否显示加号图标
|
|
77
|
+
* @returns 布尔值,true表示显示加号图标
|
|
78
|
+
*/
|
|
79
|
+
protected showPlusIcon(): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* 移除输入连接
|
|
82
|
+
* @param conn 需要移除的连接
|
|
83
|
+
*/
|
|
84
|
+
removeIncome(conn: ConnectionDef): void;
|
|
85
|
+
/**
|
|
86
|
+
* 移除输出连接
|
|
87
|
+
* 注意:原代码有bug,这里已修正,应该从outcomes数组中删除而不是incomes
|
|
88
|
+
* @param conn 需要移除的连接
|
|
89
|
+
*/
|
|
90
|
+
removeOutcome(conn: ConnectionDef): void;
|
|
91
|
+
/**
|
|
92
|
+
* 添加输入连接
|
|
93
|
+
* @param conn 需要添加的连接
|
|
94
|
+
*/
|
|
95
|
+
addIncome(conn: ConnectionDef): void;
|
|
96
|
+
/**
|
|
97
|
+
* 获取输入连接集合
|
|
98
|
+
* @returns 输入连接数组
|
|
99
|
+
*/
|
|
100
|
+
getIncomes(): ConnectionDef[];
|
|
101
|
+
/**
|
|
102
|
+
* 获取输出连接集合
|
|
103
|
+
* @returns 输出连接数组
|
|
104
|
+
*/
|
|
105
|
+
getOutcomes(): ConnectionDef[];
|
|
106
|
+
/**
|
|
107
|
+
* 添加输出连接
|
|
108
|
+
* @param conn 需要添加的连接
|
|
109
|
+
*/
|
|
110
|
+
addOutcome(conn: ConnectionDef): void;
|
|
111
|
+
/**
|
|
112
|
+
* 检查节点是否被选中
|
|
113
|
+
* @returns 布尔值,true表示被选中
|
|
114
|
+
*/
|
|
115
|
+
isSelected(): boolean;
|
|
116
|
+
/**
|
|
117
|
+
* 获取节点名称
|
|
118
|
+
* @returns 节点名称
|
|
119
|
+
*/
|
|
120
|
+
getName(): string;
|
|
121
|
+
/**
|
|
122
|
+
* 获取节点ID
|
|
123
|
+
* @returns 节点ID
|
|
124
|
+
*/
|
|
125
|
+
getId(): string;
|
|
126
|
+
/**
|
|
127
|
+
* 重置节点ID
|
|
128
|
+
* @param id 新的节点ID
|
|
129
|
+
*/
|
|
130
|
+
resetId(id: string): void;
|
|
131
|
+
/**
|
|
132
|
+
* 设置节点位置
|
|
133
|
+
* @param x X坐标
|
|
134
|
+
* @param y Y坐标
|
|
135
|
+
*/
|
|
136
|
+
setPosition(x: number, y: number): void;
|
|
137
|
+
/**
|
|
138
|
+
* 获取节点位置
|
|
139
|
+
* @returns 包含x和y坐标的对象
|
|
140
|
+
*/
|
|
141
|
+
getPosition(): {
|
|
142
|
+
x: number;
|
|
143
|
+
y: number;
|
|
144
|
+
};
|
|
145
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { default as ProcessDef } from '../ProcessDef';
|
|
2
|
+
import { default as TaskNodeDef } from './TaskNodeDef';
|
|
3
|
+
import { default as ProcessNodeDef } from '../ProcessNodeDef';
|
|
4
|
+
import { default as NodeData } from '../../data/NodeData';
|
|
5
|
+
import { TaskNodeType } from './NodeType';
|
|
6
|
+
/**
|
|
7
|
+
* 动作任务节点定义类
|
|
8
|
+
* 定义动作任务节点的基本属性和行为
|
|
9
|
+
*/
|
|
10
|
+
export default class ActionTaskNodeDef extends TaskNodeDef {
|
|
11
|
+
/** 任务节点类型 */
|
|
12
|
+
taskNodeType: TaskNodeType;
|
|
13
|
+
/** 节点数据 */
|
|
14
|
+
private nodeData;
|
|
15
|
+
/**
|
|
16
|
+
* 构造函数
|
|
17
|
+
* @param id 节点唯一标识符
|
|
18
|
+
* @param name 节点显示名称
|
|
19
|
+
* @param taskId 任务ID
|
|
20
|
+
* @param process 所属流程定义对象
|
|
21
|
+
*/
|
|
22
|
+
constructor(id: string, name: string, taskId: string, process: ProcessDef);
|
|
23
|
+
/**
|
|
24
|
+
* 获取任务节点类型
|
|
25
|
+
* @returns 动作任务节点类型
|
|
26
|
+
*/
|
|
27
|
+
getTaskNodeType(): TaskNodeType;
|
|
28
|
+
/**
|
|
29
|
+
* 获取节点图标
|
|
30
|
+
* @returns 动作节点图标字符
|
|
31
|
+
*/
|
|
32
|
+
getIcon(): string;
|
|
33
|
+
/**
|
|
34
|
+
* 获取绑定的节点数据
|
|
35
|
+
* @returns 节点数据对象
|
|
36
|
+
*/
|
|
37
|
+
getBindingNodeData(): NodeData;
|
|
38
|
+
/**
|
|
39
|
+
* 获取节点名称标识
|
|
40
|
+
* @returns 节点名称常量
|
|
41
|
+
*/
|
|
42
|
+
getNodeName(): string;
|
|
43
|
+
/**
|
|
44
|
+
* 从JSON初始化节点
|
|
45
|
+
* @param taskNode 任务节点
|
|
46
|
+
* @param taskDataNode 任务数据节点
|
|
47
|
+
* @param positionInfo 位置信息
|
|
48
|
+
* @param importType 导入类型
|
|
49
|
+
*/
|
|
50
|
+
initFromJson(taskNode: any, taskDataNode: any, positionInfo: any, importType: string): void;
|
|
51
|
+
/**
|
|
52
|
+
* 验证并转换语言类型
|
|
53
|
+
* @param language 语言字符串
|
|
54
|
+
* @returns 有效的 ActionLanguage 枚举值,如果无效则返回 null
|
|
55
|
+
*/
|
|
56
|
+
private validateLanguage;
|
|
57
|
+
/**
|
|
58
|
+
* 解析动作配置
|
|
59
|
+
* @param actionNodes 动作节点数组
|
|
60
|
+
* @param setter 配置设置回调函数
|
|
61
|
+
*/
|
|
62
|
+
private parseActionConfig;
|
|
63
|
+
/**
|
|
64
|
+
* 转换为任务XML
|
|
65
|
+
* @returns XML字符串
|
|
66
|
+
*/
|
|
67
|
+
toTaskXml(): string;
|
|
68
|
+
/**
|
|
69
|
+
* 判断是否可以添加源节点到当前节点
|
|
70
|
+
* @param sourceNode 源节点定义
|
|
71
|
+
* @returns 是否允许添加连接
|
|
72
|
+
*/
|
|
73
|
+
canAdd(sourceNode: ProcessNodeDef): boolean;
|
|
74
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as ProcessDef } from '../ProcessDef';
|
|
2
|
+
import { default as FlowProcessNodeDef } from './FlowProcessNodeDef';
|
|
3
|
+
/**
|
|
4
|
+
* 基础节点定义抽象类
|
|
5
|
+
* 所有基础节点定义类的抽象基类,继承自流程节点定义类
|
|
6
|
+
*/
|
|
7
|
+
export default abstract class BasicNodeDef extends FlowProcessNodeDef {
|
|
8
|
+
/**
|
|
9
|
+
* 构造函数
|
|
10
|
+
* @param id 节点唯一标识符
|
|
11
|
+
* @param name 节点显示名称
|
|
12
|
+
* @param process 所属流程定义对象
|
|
13
|
+
*/
|
|
14
|
+
constructor(id: string, name: string, process: ProcessDef);
|
|
15
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { default as ProcessDef } from '../ProcessDef';
|
|
2
|
+
import { default as BasicNodeDef } from './BasicNodeDef';
|
|
3
|
+
import { default as ProcessNodeDef } from '../ProcessNodeDef';
|
|
4
|
+
import { default as NodeData } from '../../data/NodeData';
|
|
5
|
+
/**
|
|
6
|
+
* 分支节点定义类
|
|
7
|
+
* 定义分支节点的基本属性和行为
|
|
8
|
+
*/
|
|
9
|
+
export default class BranchNodeDef extends BasicNodeDef {
|
|
10
|
+
/** 节点数据 */
|
|
11
|
+
private readonly nodeData;
|
|
12
|
+
/**
|
|
13
|
+
* 构造函数
|
|
14
|
+
* @param id 节点唯一标识符
|
|
15
|
+
* @param name 节点显示名称
|
|
16
|
+
* @param process 所属流程定义对象
|
|
17
|
+
*/
|
|
18
|
+
constructor(id: string, name: string, process: ProcessDef);
|
|
19
|
+
/**
|
|
20
|
+
* 获取节点图标
|
|
21
|
+
* @returns 分支节点图标字符
|
|
22
|
+
*/
|
|
23
|
+
getIcon(): string;
|
|
24
|
+
/**
|
|
25
|
+
* 获取绑定的节点数据
|
|
26
|
+
* @returns 节点数据对象
|
|
27
|
+
*/
|
|
28
|
+
getBindingNodeData(): NodeData;
|
|
29
|
+
/**
|
|
30
|
+
* 获取节点名称标识
|
|
31
|
+
* @returns 节点名称常量
|
|
32
|
+
*/
|
|
33
|
+
getNodeName(): string;
|
|
34
|
+
/**
|
|
35
|
+
* 判断是否可以添加源节点到当前节点
|
|
36
|
+
* @param sourceNode 源节点定义
|
|
37
|
+
* @returns 是否允许添加连接
|
|
38
|
+
*/
|
|
39
|
+
canAdd(sourceNode: ProcessNodeDef): boolean;
|
|
40
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as ProcessNodeDef } from '../ProcessNodeDef';
|
|
2
|
+
import { default as FlowConnectionDef } from './FlowConnectionDef';
|
|
3
|
+
/**
|
|
4
|
+
* 创建新的流程连接定义
|
|
5
|
+
* @param startNode 起始节点定义
|
|
6
|
+
* @param endNode 结束节点定义
|
|
7
|
+
* @param conditions 连接条件(可选)
|
|
8
|
+
* @returns 新创建的流程连接定义对象
|
|
9
|
+
*/
|
|
10
|
+
export declare function newConnectionDef(startNode: ProcessNodeDef, endNode: ProcessNodeDef, conditions?: string): FlowConnectionDef;
|