Skip to content

Instantly share code, notes, and snippets.

@eloycoto
Created April 24, 2023 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eloycoto/984febea80d2da690492b033191b3962 to your computer and use it in GitHub Desktop.
Save eloycoto/984febea80d2da690492b033191b3962 to your computer and use it in GitHub Desktop.
flowchart LR
classDef mySubgraphStyle fill:red,stroke:#333,stroke-width:2px,width:200px,height:200px;
classDef actor fill:#f9f,stroke:#333,stroke-width:2px,shape:actor;
subgraph "Main"[Main workflos]
subgraph "WDA"[WorkFlow A]
direction LR
Ji[[Opens a Jira ticket for OCP access]]
EM[[Send email notifying for the ticket]]
Ji --> EM
end
subgraph "WDAC"[Workflow A- Checker]
direction LR
Checker[["Checker: check if ticket is approved"]];
CT("Repeat the check every minute");
passed{Has more than 2 minutes past};
approved{approved};
pass("Passes data to the next workflow");
Checker --> CT;
Checker --> approved;
approved --> pass;
approved -->|No|passed;
CT -->|No|passed;
end
subgraph "WDACE"[Workflow A- Checker Escalator]
direction TB
EmailManagers("Task: Email Managers");
UpdateTicket("Task: update ticket");
EmailManagers --> UpdateTicket;
end
subgraph "WDB"[WorkFlow B]
direction TB
td[[Task: Deploy the app into the namespace in OCP]];
notification("Task: send notification with a link");
td --> notification;
end
EM --> approver(Approver):::actor;
approver --> jira;
jira --> Checker;
pass -->td;
passed -->EmailManagers;
UpdateTicket -->td;
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment