CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
🌙☀️
Log inStart free
Home/Templates/Oil & Gas

🛢️ Oil & Gas · State Machine

Permit-to-Work Lifecycle

The safety permit that controls hazardous work at a refinery or rig: request, risk assessment, isolation, gas testing, work and handback.

More Oil & Gas templates

Drawing diagram…

What this diagram shows

  • Work can't start until isolation and gas testing are done
  • Permits are suspended during alarms or shift changes
  • Closure needs the area handed back and isolations removed

Prompt used

State machine for a permit-to-work at an oil and gas site: Requested, Risk Assessed, Approved by the area authority, Isolated (energy sources locked out), Gas Tested, Active while work runs. It can be Suspended for an alarm or shift change and revalidated, and when work finishes it goes to Handback, isolations are removed, then Closed. A permit can be Rejected at approval.

Mermaid code
stateDiagram-v2
  [*] --> Requested
  Requested --> RiskAssessed: JSA completed
  RiskAssessed --> Approved: Area authority signs
  RiskAssessed --> Rejected: Risk too high
  Approved --> Isolated: Lockout / tagout done
  Isolated --> GasTested: Gas test OK
  GasTested --> Active: Work starts
  Active --> Suspended: Alarm or shift change
  Suspended --> GasTested: Revalidate
  Active --> Handback: Work complete
  Handback --> DeIsolated: Isolations removed
  DeIsolated --> Closed
  Closed --> [*]
  Rejected --> [*]

Related templates

NetworkOil & Gas

SCADA Pipeline Monitoring Network

The operational network behind a pipeline SCADA system: field RTUs at pump and valve stations, the control centre, and a firewalled link to the business network.

C4 ArchitectureProOil & Gas

Upstream Digital Oilfield Architecture

A digital oilfield platform: wellsite sensors and SCADA, a production data historian, and engineering applications for surveillance and optimisation.

Data FlowOil & Gas

Well Data Ingestion Pipeline

How drilling and production data from wells is collected, quality-checked, stored and shared with engineering teams.

FlowchartOil & Gas

Refinery Process Flow

A simplified crude oil refinery: desalting, distillation, conversion units and blending into finished fuels.

Data FlowOil & Gas

Compressor Predictive Maintenance

How a gas compressor station predicts failures: vibration and process data, an ML model, and maintenance work orders before a trip happens.

SequenceOil & Gas

Pipeline Leak Detection Alert

What happens when a pipeline leak detection system spots a possible leak: confirmation, valve closure, field response and regulator notification.