Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve getting started experience for Camunda Cloud SaaS #132

Merged
merged 12 commits into from
Nov 19, 2021

Conversation

ikheraj17
Copy link
Contributor

Added 'dmn-repo' folder to repository with a sample dmn file inside; also modified yaml file to clarify where cloud credentials should be inputted

@falko falko changed the title Pull request to add dmn-repo folder, sample dmn file, and yaml file modification Add dmn-repo folder, sample dmn file, and yaml sample for Camunda Cloud SaaS Nov 4, 2021
src/main/resources/application.yaml Show resolved Hide resolved
@@ -20,3 +25,5 @@ logging:
management:
server:
port: 8081

server.port: 8082
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can remove this config and use the default port.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@saig0
Copy link
Contributor

saig0 commented Nov 5, 2021

@ikheraj17 thank you for your contribution. Please give some context why do you make these changes.

@falko falko changed the title Add dmn-repo folder, sample dmn file, and yaml sample for Camunda Cloud SaaS Improve getting started experience for Camunda Cloud SaaS Nov 5, 2021
@falko
Copy link
Contributor

falko commented Nov 5, 2021

I changed the title of this PR to reflect that these changes are removing roadblocks that have cost @ikheraj17 and me a lot of unnecessary time to figure out how to get this worker running with Camunda Cloud SaaS.

@falko
Copy link
Contributor

falko commented Nov 5, 2021

We are aware that the DMN implementation inside Zeebe is on its way but for the time being, the dmn-worker is the only option

@saig0
Copy link
Contributor

saig0 commented Nov 8, 2021

@falko the worker is built based on the Zeebe Spring starter. So, the configuration should be the same 😅

Comment on lines +1 to +134
<inputEntry id="UnaryTests_0c3lrnz">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1l0btob">
<text>&lt;=85</text>
</inputEntry>
<outputEntry id="LiteralExpression_1f3y5xd">
<text>"Won't Pay In Time"</text>
</outputEntry>
<outputEntry id="LiteralExpression_1w57ha5">
<text>"red"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0s72fjf">
<description></description>
<inputEntry id="UnaryTests_1dkokb9">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0d5r6v3">
<text>"Unemployed"</text>
</inputEntry>
<inputEntry id="UnaryTests_1v6fey5">
<text>not("Basic Package")</text>
</inputEntry>
<inputEntry id="UnaryTests_1rw2hjn">
<text>&lt;=95</text>
</inputEntry>
<outputEntry id="LiteralExpression_18kpqx8">
<text>"Lack Of Income"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0mrbkzr">
<text>"red"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0c99hq3">
<description></description>
<inputEntry id="UnaryTests_16q1ghi">
<text>&lt;= 30</text>
</inputEntry>
<inputEntry id="UnaryTests_0c86j25">
<text>"Self-employed"</text>
</inputEntry>
<inputEntry id="UnaryTests_0l8wmca">
<text>"Premium Package"</text>
</inputEntry>
<inputEntry id="UnaryTests_1qkgqif">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_0jlpe55">
<text>"Irregular And Possibly Lack Of Income"</text>
</outputEntry>
<outputEntry id="LiteralExpression_05qilq2">
<text>"yellow"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1euaw2y">
<description></description>
<inputEntry id="UnaryTests_0bctfm4">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_12o8otd">
<text>"Freelancer", "Self-employed"</text>
</inputEntry>
<inputEntry id="UnaryTests_0o842fe">
<text>-</text>
</inputEntry>
<inputEntry id="UnaryTests_1h8e7id">
<text>&lt;=95</text>
</inputEntry>
<outputEntry id="LiteralExpression_1pwrw8z">
<text>"Not Trustworthy"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0zcjpew">
<text>"yellow"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_08nz8pq">
<description></description>
<inputEntry id="UnaryTests_0adgp9c">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1jzpweh">
<text>"Salaried"</text>
</inputEntry>
<inputEntry id="UnaryTests_17itih0">
<text>"Premium Package"</text>
</inputEntry>
<inputEntry id="UnaryTests_0dgmj4d">
<text>&lt;90</text>
</inputEntry>
<outputEntry id="LiteralExpression_1xwbye7">
<text>"Too Low Income"</text>
</outputEntry>
<outputEntry id="LiteralExpression_1s5g29d">
<text>"yellow"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
</definitions>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ikheraj17 why do you want to add an example DMN to the repository?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So that users immediately see the folder in which files have to go and also have a working example in case they are new to DMN.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saig0 Are there any other outstanding issues regarding my pull request? If not, would you or the appropriate person please merge the changes that Falko and I have made? I'm in the process of creating documentation for the Camunda Cloud showcase, and the showcase's DMN functionality depends on this plugin. Please let me know if there are any other changes that you have questions about. Thank you!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ikheraj17 I'm sorry for the delay. I was distracted by other duties 🙈

Currently, the build of this PR is failing. Something went wrong in the test case: WorkflowTest.shouldCompleteWorkflowInstance().

Error:  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 34.072 s <<< FAILURE! - in io.zeebe.dmn.WorkflowTest
Error:  shouldCompleteWorkflowInstance  Time elapsed: 10.407 s  <<< ERROR!

Are you able to build the PR locally?
I'll look into it today or tomorrow.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can reproduce the test error locally. Looking into it...

@falko
Copy link
Contributor

falko commented Nov 8, 2021

@falko the worker is built based on the Zeebe Spring starter. So, the configuration should be the same sweat_smile

Not everyone knows Spring Boot or our starter or all its configuration options by hard.

@falko
Copy link
Contributor

falko commented Nov 8, 2021

Also, with the changes Imran suggested, the DMN worker works out of the box with our official Customer Onboarding Showcase that we use in all demos to Camunda Cloud prospects: https://github.com/camunda-consulting/showroom-customer-onboarding/tree/camunda-cloud

We frequently share that code with prospects for them to try it out themselves. We thought about copying the DMN worker code directly into the showcase repo but that would cut us off from updates and could lead customers to follow our example instead of using the official DMN worker. It also wouldn't give the due credit to you.

@saig0 saig0 self-requested a review November 18, 2021 05:17
Copy link
Contributor

@falko falko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BUILD SUCCESS

@falko
Copy link
Contributor

falko commented Nov 18, 2021

@saig0 I'd suggest squashing all this mess together into one commit when merging ;-)

Copy link
Contributor

@saig0 saig0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ikheraj17 / @falko looks good 👍 Thanks you 🍰

@saig0 saig0 merged commit 5775d8d into camunda-community-hub:master Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants