From the Project window, double-click the jcdDelete Collaboration under your project's jcdALL node.
The Java Collaboration Editor opens to the jcdDelete Collaboration.
Create the Copy "Deleting record............" to FileClient_1.Text rule.
From the Business Rules Designer toolbar's String menu, select Literal String.
A String method box is added to the Business Rules Designer canvas.
Double-click the value field of the String method box and enter Deleting record............ as the value.
Map the output node of the String method box, to Text, under FileClient_1 in the right pane of the Business Rules Designer. To do this, click on the output node of the String method box, and drag your cursor to the Textnode, under FileClient_1 in the right pane of the Business Rules Designer.
A visible link now connects the output node of the String method box and the Text node. The Business Rules tree now displays the new rule: Copy "Deleting record............" to FileClient_1.Text.
Create the FileClient_1.write rule.
Click the rule icon on the Business Rules toolbar to add a new rule in the Business Rules pane.
Right-click the FileClient_1 node in the left pane of the Business Rules Designer, and choose Select method to call from the popup menu.
The method selection window appears.
Select and double-click write() from the method selection window.
The write method box appears in the Business Rules Designer canvas. The FileClient_1.write rule is added to the Business Rules tree.
Create the otdDB2_1.Db_employee.delete(input.Text) rule.
Click the rule icon on the Business Rules toolbar to add a new rule in the Business Rules pane.
Right-click Db_employee under the otdDB2_1 node in the left pane of the Business Rules Designer, and choose Select method to call from the popup menu.
The method selection window appears.
Select delete(StringsWhere) from the method selection window.
The delete method box appears in the Business Rules Designer canvas, and a link connects the Db_employee node in the left pane of the Business Rules Designer to the Db_employee input node of the delete method box.
Map Text under the input node in the left pane of the Business Rules Designer, to the sWhere (String) input node of the delete method box.
Create the Copy "Delete Done." to FileClient_1.Text rule.
Click the rule icon on the Business Rules toolbar to add a new rule in the Business Rules pane.
From the Business Rules Designer toolbar's String menu, select Literal String.
A String method box is added to the Business Rules Designer canvas.
Double-click the value field of the String method box and enter Delete Done as the value.
Map the output node of the String method box, to Text, under FileClient_1 in the right pane of the Business Rules Designer.
Create the FileClient_1.write rule.
Click the rule icon on the Business Rules toolbar to add a new rule in the Business Rules pane.
Right-click the FileClient_1 node in the left pane of the Business Rules Designer, and choose Select method to call from the popup menu.
The method selection window appears.
Select and double-click write() from the method selection window.
The write method box appears in the Business Rules Designer canvas. The FileClient_1.write rule is added to the Business Rules tree.
Click Save All to save your current changes.
The completed jcdDelete Collaboration definition appears as follows: