strategicbta.blogg.se

Visual paradigm professional edition
Visual paradigm professional edition








The action value works in the similar way as the condition.

visual paradigm professional edition

tCondition(condAddressProvided) ĭecisionTable.addRuleConditionValue(rule1Con) Specify Action for Rule IDTBRuleConditionValue rule1Con = factory.createDTBRuleConditionValue()

visual paradigm professional edition

Specify conditions and values and apply to rule We create IDTBRuleConditionValue from IModelElementFactory, then specify its rule, condition and name. tWidth(50) Apply Conditions to RuleĪs everything is ready let’s apply condition(s) to rule(s). IDTBRule rule1 = factory.createDTBRule() The only different is we need to specify the width of the rule column. Again, the steps is similar to create conditions and actions. Now we create the rules IDTBRule for the decision table. After create the actions we then specify the width for the conditions and actions column to make sure the text can be fully shown in table. IDTBAction actApprove = factory.createDTBAction() ĪtName("Approve loan request immediately") Īgain, repeat the steps to create the other actions. Create actions and assign to decision table Same as the conditions we just create it from IModelElementFactory, specify its name and assign it to decision table.

visual paradigm professional edition

Create ActionsĪfter that we create the Actions IDTBAction for the decision table. Repeat the steps to create other conditions for the decision table. IDTBCondition condAddressProvided = factory.createDTBCondition() ĬtName("Address proof provided") ĭecisionTable.addCondition(condAddressProvided) Create conditions and assign to decision table We can simply create the IDTBCondition from IModelElementFactory, specify its name and assign it to decision table.

visual paradigm professional edition

Next we create the conditions IDTBCondition for the decision table. IDTBDecisionTable decisionTable = factory.createDTBDecisionTable() ĭtDecisionTableModelAddress(decisionTable.getAddress()) Create Conditions and clear its default condition, action and rule IModelElementFactory factory = IModelElementFactory.instance() After we create the IDTBDecisionTable from IModelElementFactory we can then retrieve its ID and associate it to the diagram. Unlike other diagrams that will associate with multiple model elements, the Decision Table Diagram will only associate with one decision table model called IDTBDecisionTable. IDTBDecisionTableEditorDiagramUIModel decisionTableDiagram = (IDTBDecisionTableEditorDiagramUIModel) dm.createDiagram(IDiagramTypeConstants.DIAGRAM_TYPE_DTB_DECISION_TABLE_EDITOR_DIAGRAM) Obtain DiagramManager and create Decision Table DiagramĭiagramManager dm = ApplicationManager.instance().getDiagramManager() The decision table going to create by the pluginįirst we create a blank Decision Table Diagram using DiagramManager.










Visual paradigm professional edition