File tree Expand file tree Collapse file tree 10 files changed +36
-43
lines changed
onixlabs-corda-identity-framework-workflow/src/main/kotlin/io/onixlabs/corda/identityframework/workflow
onixlabs-test-cordapp-contract/src/main/kotlin/io/onixlabs/test/cordapp/contract Expand file tree Collapse file tree 10 files changed +36
-43
lines changed Original file line number Diff line number Diff line change @@ -65,20 +65,20 @@ class AmendAttestationFlowHandler(
65
65
private class Handler (private val session : FlowSession ) : FlowLogic<SignedTransaction>() {
66
66
67
67
private companion object {
68
- object ObserveAmendedAttestationStep : Step(" Observing amended attestation." ) {
68
+ object HandleAmendedAttestationStep : Step(" Handling amended attestation." ) {
69
69
override fun childProgressTracker (): ProgressTracker = tracker()
70
70
}
71
71
}
72
72
73
- override val progressTracker = ProgressTracker (ObserveAmendedAttestationStep )
73
+ override val progressTracker = ProgressTracker (HandleAmendedAttestationStep )
74
74
75
75
@Suspendable
76
76
override fun call (): SignedTransaction {
77
- currentStep(ObserveAmendedAttestationStep )
77
+ currentStep(HandleAmendedAttestationStep )
78
78
return subFlow(
79
79
AmendAttestationFlowHandler (
80
80
session,
81
- progressTracker = ObserveAmendedAttestationStep .childProgressTracker()
81
+ progressTracker = HandleAmendedAttestationStep .childProgressTracker()
82
82
)
83
83
)
84
84
}
Original file line number Diff line number Diff line change @@ -65,20 +65,20 @@ class AmendClaimFlowHandler(
65
65
private class Handler (private val session : FlowSession ) : FlowLogic<SignedTransaction>() {
66
66
67
67
private companion object {
68
- object ObserveAmendedClaimStep : Step(" Observing amended claim." ) {
68
+ object HandlingAmendedClaimStep : Step(" Handling amended claim." ) {
69
69
override fun childProgressTracker (): ProgressTracker = tracker()
70
70
}
71
71
}
72
72
73
- override val progressTracker = ProgressTracker (ObserveAmendedClaimStep )
73
+ override val progressTracker = ProgressTracker (HandlingAmendedClaimStep )
74
74
75
75
@Suspendable
76
76
override fun call (): SignedTransaction {
77
- currentStep(ObserveAmendedClaimStep )
77
+ currentStep(HandlingAmendedClaimStep )
78
78
return subFlow(
79
79
AmendClaimFlowHandler (
80
80
session,
81
- progressTracker = ObserveAmendedClaimStep .childProgressTracker()
81
+ progressTracker = HandlingAmendedClaimStep .childProgressTracker()
82
82
)
83
83
)
84
84
}
Original file line number Diff line number Diff line change @@ -65,20 +65,20 @@ class IssueAttestationFlowHandler(
65
65
private class Handler (private val session : FlowSession ) : FlowLogic<SignedTransaction>() {
66
66
67
67
private companion object {
68
- object ObserveIssuedAttestationStep : Step(" Observing issued attestation." ) {
68
+ object HandleIssuedAttestationStep : Step(" Handling issued attestation." ) {
69
69
override fun childProgressTracker (): ProgressTracker = tracker()
70
70
}
71
71
}
72
72
73
- override val progressTracker = ProgressTracker (ObserveIssuedAttestationStep )
73
+ override val progressTracker = ProgressTracker (HandleIssuedAttestationStep )
74
74
75
75
@Suspendable
76
76
override fun call (): SignedTransaction {
77
- currentStep(ObserveIssuedAttestationStep )
77
+ currentStep(HandleIssuedAttestationStep )
78
78
return subFlow(
79
79
IssueAttestationFlowHandler (
80
80
session,
81
- progressTracker = ObserveIssuedAttestationStep .childProgressTracker()
81
+ progressTracker = HandleIssuedAttestationStep .childProgressTracker()
82
82
)
83
83
)
84
84
}
Original file line number Diff line number Diff line change @@ -65,20 +65,20 @@ class IssueClaimFlowHandler(
65
65
private class Handler (private val session : FlowSession ) : FlowLogic<SignedTransaction>() {
66
66
67
67
private companion object {
68
- object ObserveIssuedClaimStep : Step(" Observing issued claim." ) {
68
+ object HandleIssuedClaimStep : Step(" Handling issued claim." ) {
69
69
override fun childProgressTracker (): ProgressTracker = tracker()
70
70
}
71
71
}
72
72
73
- override val progressTracker = ProgressTracker (ObserveIssuedClaimStep )
73
+ override val progressTracker = ProgressTracker (HandleIssuedClaimStep )
74
74
75
75
@Suspendable
76
76
override fun call (): SignedTransaction {
77
- currentStep(ObserveIssuedClaimStep )
77
+ currentStep(HandleIssuedClaimStep )
78
78
return subFlow(
79
79
IssueClaimFlowHandler (
80
80
session,
81
- progressTracker = ObserveIssuedClaimStep .childProgressTracker()
81
+ progressTracker = HandleIssuedClaimStep .childProgressTracker()
82
82
)
83
83
)
84
84
}
Original file line number Diff line number Diff line change 17
17
package io.onixlabs.corda.identityframework.workflow
18
18
19
19
import co.paralleluniverse.fibers.Suspendable
20
- import io.onixlabs.corda.core.workflow.ReceiveStatesToRecordStep
21
20
import io.onixlabs.corda.core.workflow.currentStep
22
21
import net.corda.core.flows.FlowLogic
23
22
import net.corda.core.flows.FlowSession
@@ -59,20 +58,20 @@ class PublishAttestationFlowHandler(
59
58
private class Handler (private val session : FlowSession ) : FlowLogic<SignedTransaction>() {
60
59
61
60
private companion object {
62
- object ReceivePublishedAttestationTransactionStep : Step(" Receiving published attestation transaction ." ) {
61
+ object HandlePublishedAttestationStep : Step(" Handling published attestation." ) {
63
62
override fun childProgressTracker () = tracker()
64
63
}
65
64
}
66
65
67
- override val progressTracker = ProgressTracker (ReceivePublishedAttestationTransactionStep )
66
+ override val progressTracker = ProgressTracker (HandlePublishedAttestationStep )
68
67
69
68
@Suspendable
70
69
override fun call (): SignedTransaction {
71
- currentStep(ReceivePublishedAttestationTransactionStep )
70
+ currentStep(HandlePublishedAttestationStep )
72
71
return subFlow(
73
72
PublishAttestationFlowHandler (
74
73
session,
75
- ReceivePublishedAttestationTransactionStep .childProgressTracker()
74
+ HandlePublishedAttestationStep .childProgressTracker()
76
75
)
77
76
)
78
77
}
Original file line number Diff line number Diff line change @@ -58,20 +58,20 @@ class PublishClaimFlowHandler(
58
58
private class Handler (private val session : FlowSession ) : FlowLogic<SignedTransaction>() {
59
59
60
60
private companion object {
61
- object ReceivePublishedClaimTransactionStep : Step(" Receiving published claim transaction ." ) {
61
+ object HandlePublishedClaimStep : Step(" Handling published claim." ) {
62
62
override fun childProgressTracker () = tracker()
63
63
}
64
64
}
65
65
66
- override val progressTracker = ProgressTracker (ReceivePublishedClaimTransactionStep )
66
+ override val progressTracker = ProgressTracker (HandlePublishedClaimStep )
67
67
68
68
@Suspendable
69
69
override fun call (): SignedTransaction {
70
- currentStep(ReceivePublishedClaimTransactionStep )
70
+ currentStep(HandlePublishedClaimStep )
71
71
return subFlow(
72
72
PublishClaimFlowHandler (
73
73
session,
74
- ReceivePublishedClaimTransactionStep .childProgressTracker()
74
+ HandlePublishedClaimStep .childProgressTracker()
75
75
)
76
76
)
77
77
}
Original file line number Diff line number Diff line change @@ -65,20 +65,20 @@ class RevokeAttestationFlowHandler(
65
65
private class Handler (private val session : FlowSession ) : FlowLogic<SignedTransaction>() {
66
66
67
67
private companion object {
68
- object ObserveRevokedAttestationStep : Step(" Observing revoked attestation." ) {
68
+ object HandleRevokedAttestationStep : Step(" Handling revoked attestation." ) {
69
69
override fun childProgressTracker (): ProgressTracker = tracker()
70
70
}
71
71
}
72
72
73
- override val progressTracker = ProgressTracker (ObserveRevokedAttestationStep )
73
+ override val progressTracker = ProgressTracker (HandleRevokedAttestationStep )
74
74
75
75
@Suspendable
76
76
override fun call (): SignedTransaction {
77
- currentStep(ObserveRevokedAttestationStep )
77
+ currentStep(HandleRevokedAttestationStep )
78
78
return subFlow(
79
79
RevokeAttestationFlowHandler (
80
80
session,
81
- progressTracker = ObserveRevokedAttestationStep .childProgressTracker()
81
+ progressTracker = HandleRevokedAttestationStep .childProgressTracker()
82
82
)
83
83
)
84
84
}
Original file line number Diff line number Diff line change @@ -65,20 +65,20 @@ class RevokeClaimFlowHandler(
65
65
private class Handler (private val session : FlowSession ) : FlowLogic<SignedTransaction>() {
66
66
67
67
private companion object {
68
- object ObserveRevokedClaimStep : Step(" Observing revoked claim." ) {
68
+ object HandleRevokedClaimStep : Step(" Handling revoked claim." ) {
69
69
override fun childProgressTracker (): ProgressTracker = tracker()
70
70
}
71
71
}
72
72
73
- override val progressTracker = ProgressTracker (ObserveRevokedClaimStep )
73
+ override val progressTracker = ProgressTracker (HandleRevokedClaimStep )
74
74
75
75
@Suspendable
76
76
override fun call (): SignedTransaction {
77
- currentStep(ObserveRevokedClaimStep )
77
+ currentStep(HandleRevokedClaimStep )
78
78
return subFlow(
79
79
RevokeClaimFlowHandler (
80
80
session,
81
- progressTracker = ObserveRevokedClaimStep .childProgressTracker()
81
+ progressTracker = HandleRevokedClaimStep .childProgressTracker()
82
82
)
83
83
)
84
84
}
Original file line number Diff line number Diff line change 16
16
17
17
package io.onixlabs.test.cordapp.contract
18
18
19
+ import io.onixlabs.corda.core.contract.ContractID
19
20
import io.onixlabs.corda.identityframework.contract.AttestationContract
20
21
import io.onixlabs.corda.identityframework.contract.AttestationStatus
21
22
import net.corda.core.contracts.Contract
22
- import net.corda.core.contracts.ContractClassName
23
23
import net.corda.core.contracts.requireThat
24
24
import net.corda.core.transactions.LedgerTransaction
25
25
import java.security.PublicKey
26
26
27
27
class GreetingAttestationContract : AttestationContract (), Contract {
28
28
29
- companion object {
30
- @JvmStatic
31
- val ID : ContractClassName = this ::class .java.enclosingClass.canonicalName
32
- }
29
+ companion object : ContractID
33
30
34
31
internal object Issue {
35
32
const val CONTRACT_RULE_REFERENCES =
Original file line number Diff line number Diff line change 16
16
17
17
package io.onixlabs.test.cordapp.contract
18
18
19
+ import io.onixlabs.corda.core.contract.ContractID
19
20
import io.onixlabs.corda.identityframework.contract.CordaClaimContract
20
21
import net.corda.core.contracts.Contract
21
- import net.corda.core.contracts.ContractClassName
22
22
import net.corda.core.contracts.requireThat
23
23
import net.corda.core.transactions.LedgerTransaction
24
24
import java.security.PublicKey
25
25
26
26
class GreetingClaimContract : CordaClaimContract (), Contract {
27
27
28
- companion object {
29
- @JvmStatic
30
- val ID : ContractClassName = this ::class .java.enclosingClass.canonicalName
31
- }
28
+ companion object : ContractID
32
29
33
30
internal object Issue {
34
31
const val CONTRACT_RULE_OUTPUT_PROPERTY =
You can’t perform that action at this time.
0 commit comments