Supply Chain Workflow Example
This program models supply chain workflow.
Problem Statement
Write a Java program to model Supplier and SupplyChainWorkflow classes.
Source Code
| 1 | class Supplier { |
| 2 | String name; String product; |
| 3 | Supplier(String n,String p){ name=n; product=p; } |
| 4 | } |
| 5 | class SupplyChainWorkflow { |
| 6 | void process(Supplier s){ System.out.println("Supplier "+s.name+" delivers "+s.product); } |
| 7 | } |
| 8 | public class SupplyChainWorkflowExample { |
| 9 | public static void main(String[] args) { |
| 10 | System.out.println("Eduinq Supply Chain Workflow"); |
| 11 | Supplier s=new Supplier("ABC Corp","Laptops"); |
| 12 | SupplyChainWorkflow sc=new SupplyChainWorkflow(); |
| 13 | sc.process(s); |
| 14 | } |
| 15 | } |
Program Output
Eduinq Supply Chain Workflow Supplier ABC Corp delivers Laptops
Explanation
Supplier models vendor details. - Workflow processes delivery. - This demonstrates enterprise supply chain workflow modeling. Conclusion: Shows supply chain workflow example.