Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-yves-monnet committed Aug 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent ed24f8b commit e9d05f4
Showing 13 changed files with 111 additions and 95 deletions.
40 changes: 28 additions & 12 deletions src/main/frontend/README.md
Original file line number Diff line number Diff line change
@@ -17,7 +17,9 @@ You may also see any lint errors in the console.
### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
See the section
about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more
information.

### `npm run build`

@@ -27,44 +29,58 @@ It correctly bundles React in production mode and optimizes the build for the be
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for
more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can't go back!**

If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time.
This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel,
ESLint, etc) right into your project so you have full control over them. All of the commands
except `eject` will still work, but they will point to the copied scripts so you can tweak them. At
this point you're on your own.

You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
You don't have to ever use `eject`. The curated feature set is suitable for small and middle
deployments, and you shouldn't feel obligated to use this feature. However we understand that this
tool wouldn't be useful if you couldn't customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
You can learn more in
the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
This section has moved
here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
This section has moved
here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
This section has moved
here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
This section has moved
here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
This section has moved
here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
This section has moved
here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
74 changes: 37 additions & 37 deletions src/main/frontend/public/index.html
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
<head>
<meta charset="utf-8"/>
<link href="%PUBLIC_URL%/favicon.ico" rel="icon"/>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<meta content="#000000" name="theme-color"/>
<meta
content="Web site created using create-react-app"
name="description"
/>
<link href="%PUBLIC_URL%/logo192.png" rel="apple-touch-icon"/>
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link href="%PUBLIC_URL%/manifest.json" rel="manifest"/>
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
6 changes: 3 additions & 3 deletions src/main/frontend/src/index.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
monospace;
}
2 changes: 1 addition & 1 deletion src/main/frontend/src/index.js
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import reportWebVitals from './reportWebVitals';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
<App/>
</React.StrictMode>
);

9 changes: 8 additions & 1 deletion src/main/frontend/src/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main/frontend/src/reportWebVitals.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const reportWebVitals = onPerfEntry => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
import('web-vitals').then(({getCLS, getFID, getFCP, getLCP, getTTFB}) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
11 changes: 5 additions & 6 deletions src/main/java/org/camunda/automator/definition/ScenarioStep.java
Original file line number Diff line number Diff line change
@@ -22,6 +22,11 @@ public class ScenarioStep {
private final Map<String, String> variablesOperation = Collections.emptyMap();
private final Long fixedBackOffDelay = 0L;
private final MODEEXECUTION modeExecution = MODEEXECUTION.CLASSICAL;
private final Boolean streamEnabled = true;
/**
* Receive a step range in the scenario, which help to identify the step
*/
private final int stepNumber = -1;
/**
* In case of a Flow Step, the number of workers to execute this tasks
*/
@@ -43,7 +48,6 @@ public class ScenarioStep {
* to execute a service task in C8, topic is mandatory
*/
private String topic;
private final Boolean streamEnabled = true;
private Map<String, Object> variables = Collections.emptyMap();
private String userId;
/**
@@ -67,11 +71,6 @@ public class ScenarioStep {
*/
private String processId;

/**
* Receive a step range in the scenario, which help to identify the step
*/
private final int stepNumber = -1;

public ScenarioStep(ScenarioExecution scnExecution) {
this.scnExecution = scnExecution;
}
Original file line number Diff line number Diff line change
@@ -326,15 +326,12 @@ private void logRealTime(List<RunScenarioFlowBasic> listFlows, long timeToFinish
};
logger.info(key);
switch (scenarioStep.getType()) {
case STARTEVENT ->
previousValueMap.put(flowBasic.getId(),
runResultFlow.getRecordCreationPI().get(flowBasic.getScenarioStep().getProcessId()).nbCreated);
case STARTEVENT -> previousValueMap.put(flowBasic.getId(),
runResultFlow.getRecordCreationPI().get(flowBasic.getScenarioStep().getProcessId()).nbCreated);

case SERVICETASK ->
previousValueMap.put(flowBasic.getId(), (long) runResultFlow.getNumberOfSteps());
case SERVICETASK -> previousValueMap.put(flowBasic.getId(), (long) runResultFlow.getNumberOfSteps());

case USERTASK ->
previousValueMap.put(flowBasic.getId(), (long) runResultFlow.getNumberOfSteps());
case USERTASK -> previousValueMap.put(flowBasic.getId(), (long) runResultFlow.getNumberOfSteps());

default -> {
}
Original file line number Diff line number Diff line change
@@ -111,8 +111,7 @@ public void warmingUp(RunResult runResult) {
userTask.execute();
listWarmingUpUserTask.add(userTask);
}
default ->
logger.info("WarmingUp: Unknown [{}]", scenarioStep.getType());
default -> logger.info("WarmingUp: Unknown [{}]", scenarioStep.getType());

}
}
9 changes: 4 additions & 5 deletions src/main/resources/loadtest/C7SimpleTask.json
Original file line number Diff line number Diff line change
@@ -25,13 +25,12 @@
{
"label": "Ended (UserTask TheEnd) Verification",
"processId": "SimpleTask",
"type" : "USERTASK",
"taskId" : "CheckTask",
"type": "USERTASK",
"taskId": "CheckTask",
"value": 60000
}
]
},

"flows": [
{
"type": "STARTEVENT",
@@ -50,5 +49,5 @@
"waitingTime": "PT0S",
"modeExecution": "ASYNCHRONOUS"
}
]
}
]
}
9 changes: 4 additions & 5 deletions src/main/resources/loadtest/C7SimpleTaskDelegate.json
Original file line number Diff line number Diff line change
@@ -25,13 +25,12 @@
{
"label": "Ended (UserTask TheEnd) Verification",
"processId": "SimpleTaskDelegate",
"type" : "USERTASK",
"taskId" : "CheckTask",
"type": "USERTASK",
"taskId": "CheckTask",
"value": 60000
}
]
},

"flows": [
{
"type": "STARTEVENT",
@@ -44,5 +43,5 @@
"loopcrawl": "generaterandomlist(1000)"
}
}
]
}
]
}
18 changes: 9 additions & 9 deletions src/main/resources/loadtest/DiscoverySeedExtraction.json
Original file line number Diff line number Diff line change
@@ -24,40 +24,40 @@
"processIdSubprocess": "DiscoverySeedExtraction",
"processIdCallactivity": "DiscoverySeedExtraction-ca",
"processId": "DiscoverySeedExtraction-ca",
"type" : "CREATED",
"value" : 150,
"type": "CREATED",
"value": 150,
"real": "Frequency: 5/20S Duration: 10MN : 150"
},
{
"label": "Ended SeedExtraction",
"processIdSubprocess": "DiscoverySeedExtraction",
"processIdCallactivity": "DiscoverySeedExtraction-ca",
"processId": "DiscoverySeedExtraction-ca",
"type" : "ENDED",
"value" : 0
"type": "ENDED",
"value": 0
},
{
"label": "Ended (UserTask TheEnd) SeedExtraction",
"processIdSubprocess": "DiscoverySeedExtraction",
"processIdCallactivity": "DiscoverySeedExtraction-ca",
"processId": "DiscoverySeedExtraction-ca",
"type" : "USERTASK",
"taskId" : "Activity_DiscoverySeedExtraction_TheEnd",
"type": "USERTASK",
"taskId": "Activity_DiscoverySeedExtraction_TheEnd",
"value": 150
},
{
"label": "Flow per minutes",
"processIdSubprocess": "DiscoverySeedExtraction",
"processIdCallactivity": "DiscoverySeedExtraction-ca",
"processId": "DiscoverySeedExtraction-ca",
"type" : "FLOWRATEUSERTASKMN",
"taskId" : "Activity_DiscoverySeedExtraction_TheEnd",
"type": "FLOWRATEUSERTASKMN",
"taskId": "Activity_DiscoverySeedExtraction_TheEnd",
"standardDeviation": 10,
"value": 15
}
]
},
"warmingUp" : {
"warmingUp": {
"duration": "PT4M",
"operations": [
{
Loading

0 comments on commit e9d05f4

Please sign in to comment.