The New Advanced Society. Группа авторов

Чтение книги онлайн.

Читать онлайн книгу The New Advanced Society - Группа авторов страница 21

The New Advanced Society - Группа авторов

Скачать книгу

2.11 System overview.

      2.4.2 Working Flowchart

Schematic illustration of the working flowchart of the solution.

      The Main Contractor: This entity can create new tasks and assign them to the subcontractor, along with a deadline, and then request the client for the money that is required for the completion of the assigned task. This participant can be assumed as the bridge linked to the client and the subcontractor.

      The Subcontractor: This entity should update the status of the assigned task so that it can be inspected by the concerned people. This participant should do so before the given deadline so that no strict action can be taken for the delay.

      This solution model uses a single notary due to limited participants and all the participants must have an account on the online platform that is provided.

      2.4.3 Experimental Demonstration

      It can be seen from Figure 2.12 that the proposed solution model involves a multi-step process. Hence, for the sake of simplicity and understanding of the working, we will be demonstrating the first step which involves the creation of a task by the main contractor. The execution of this step involves creating four files:

       TaskState.java—the file containing the code with the specifics of the state; the initialization of the parameters

       CATContract.java—the file containing the code with the rules for the inputs and outputs, required conditions, and checking for the signatures of the required signers.

       CATInitiatorFlow.java—the file containing the code that starts the flow, makes sure that only the main contractor can initiate the transaction, gathers the required signatures, and gets the notary node to verify the provided signatures to approve or disapprove the transaction.

       CATResponderFlow.java—the file containing the code that takes care of the flow session from the counterparties i.e., the client and the subcontractor.

      After finishing the code in the respective files, the next step is to deploy the four nodes for the client, the main contractor, the subcontractor, and the notary.

A snapshot of the executing gradlew.bat deployNodes. A snapshot of the executing build\nodes\runnodes.bat. A snapshot of the client node. A snapshot of the MainContractor node. A snapshot of the Notary node.

Скачать книгу