-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
268 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...cess-app/src/main/java/io/miragon/consulting/connectorworkshop/KycProcessApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package io.miragon.consulting.connectorworkshop; | ||
|
||
import io.camunda.zeebe.spring.client.EnableZeebeClient; | ||
import io.camunda.zeebe.spring.client.annotation.JobWorker; | ||
import io.camunda.zeebe.spring.client.annotation.VariablesAsType; | ||
import io.miragon.consulting.connectorworkshop.dtos.Application; | ||
import io.miragon.consulting.connectorworkshop.dtos.CheckResult; | ||
import io.miragon.consulting.connectorworkshop.dtos.VerificationResult; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
import java.util.Map; | ||
|
||
|
||
@SpringBootApplication | ||
@EnableZeebeClient | ||
public class KycProcessApplication { | ||
public static void main(String[] args) { | ||
SpringApplication.run(KycProcessApplication.class, args); | ||
} | ||
|
||
@JobWorker() | ||
public CheckResult checkApplicant(@VariablesAsType Application application){ | ||
return new CheckResult(true); | ||
} | ||
|
||
@JobWorker() | ||
public VerificationResult verifyApplication(@VariablesAsType Application application){ | ||
return new VerificationResult(true); | ||
} | ||
|
||
@JobWorker() | ||
public void startOnboardingProcess(@VariablesAsType Application application){ | ||
|
||
} | ||
|
||
@JobWorker() | ||
public void restCall(@VariablesAsType Application application){ | ||
} | ||
} | ||
|
18 changes: 18 additions & 0 deletions
18
...c-process-app/src/main/java/io/miragon/consulting/connectorworkshop/dtos/Application.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.miragon.consulting.connectorworkshop.dtos; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import org.checkerframework.checker.signature.qual.FullyQualifiedName; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class Application { | ||
private String accountType; | ||
private boolean additionalServices; | ||
private String address; | ||
private String dateOfBirth; | ||
private String email; | ||
private String fullName; | ||
private String phoneNumber; | ||
private boolean termsAgreement; | ||
} |
10 changes: 10 additions & 0 deletions
10
...c-process-app/src/main/java/io/miragon/consulting/connectorworkshop/dtos/CheckResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.miragon.consulting.connectorworkshop.dtos; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class CheckResult { | ||
private boolean applicantCheck; | ||
} |
10 changes: 10 additions & 0 deletions
10
...ss-app/src/main/java/io/miragon/consulting/connectorworkshop/dtos/VerificationResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.miragon.consulting.connectorworkshop.dtos; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class VerificationResult { | ||
private boolean applicationVerified; | ||
} |
16 changes: 16 additions & 0 deletions
16
connector-workshop/kyc-process-app/src/main/resources/application.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# https://docs.camunda.io/docs/apis-tools/spring-zeebe-sdk/getting-started/ | ||
# https://docs.camunda.io/docs/apis-tools/spring-zeebe-sdk/configuration/ | ||
|
||
server: | ||
port: 9100 | ||
|
||
zeebe: | ||
client: | ||
cloud: | ||
cluster-id: ${CAMUNDA_CLUSTER_ID} | ||
client-id: ${ZEEBE_CLIENT_ID} | ||
client-secret: ${ZEEBE_CLIENT_SECRET} | ||
region: ${CAMUNDA_CLUSTER_REGION:ont-1} | ||
auth-url: ${ZEEBE_AUTHORIZATION_SERVER_URL} | ||
broker: | ||
gateway-address: ${ZEEBE_ADDRESS:localhost:26500} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters