r-io suiter-io suiteuse case docs
← Skateboard Logistics
Skateboard Logistics / Guided scenario

Supplier receipts: a process driven by the stocks

Three customer orders bring the demand. r-io deduces one production chain for the three orders, from the supplier orders to the deliveries, with the stocks in the flow and loops sized by the sum of the orders; the allocation machine shares the lots among the customers. Once deployed, the workflow engine takes and puts the quantities: the loops make the eSkates until the batteries run out and wait. The supplier receipts played by r-iosemit refill the stocks, the loops start again, and the lots are packaged, allocated and shipped to the three customers.

What this scenario demonstrates

The stocks drive the process. The deduction climbs from the demand through the stocks and sizes the loops; the engine is the only writer of the levels and makes a task wait while a stock is short; a receipt adds its quantity to its stock; the deliveries are the falls of the lot stocks seen by the CEP; the supervision shows the levels, the counters and the waits live.

01 · Step

Load the use case and open the applications

Skateboard Logistics models A-Atlanta, which assembles eSkates in its Atlanta plant (the product reference eSkate E12, whose bill of materials takes 4 × Wheel S14, 1 × Battery B84, 1 × Engine V8 and 1 × Woodboard W14: From Product rows on catalog references, not goods), five suppliers B to F and three customers whose orders carry the demand: H-LA 200, I-Italy 150 and G-Canada 50 eSkates, each a From Product row on eSkate E12 that the deduction converts into lots of 50 (4, 3 and 1 lots). A-Atlanta Makes and Delivers the pack eSkate E12 lot of 50, each supplier Delivers its components. The plant holds nine stocks, each with a level sensor. Start from a fresh r-io: a run takes from the stocks and fills them, and the stocks of the use case are only reset when it is loaded again.

  1. In r-ioga, Projects workspace, click the card Skateboard Logistics, then Load, and close the confirmation with OK.
  2. From the APPLICATIONS column of Project List, open R-IOSE, R-IOTA and R-IOSEMIT, each in its own tab.

ResultThe three applications open on the project Skateboard Logistics.

02 · Step

Start the stock sensors

The workflow engine writes the stock levels; each level sensor only echoes the new value as a field event, which the CEP rules read to activate the deliveries. A sensor that is not started emits nothing: without this step, the lots leave the plant but no delivery is seen. Starting a sensor also writes its availability (Available, the default value of a Resource); the supervision counts a property absent from the plan as its default value, so this change raises no alert.

  1. In r-iose, tab DATA, click Start All Sensors.

ResultThe nine sensors (Engine V8 stock level, Battery B84 stock level, … Lots allocated to H-LA level) read STARTED.

03 · Step

Deduce the process from the orders

The three January orders of the customers (January order of H-LA (200 eSkates), of I-Italy (150 eSkates), of G-Canada (50 eSkates)) are active actualities: r-iota shows them as alerts, each treated by the objective Treat the January order of …. The deduction starts from the demand of each order and climbs through the stocks: shipping needs lots, a lot is packaged from 50 eSkates, an eSkate is made from the four component stocks, and those stocks are filled by the supplier orders. It also computes how many times each function must run.

  1. In r-iota, click FIND SOLUTION(S).
  2. In the dialog, keep the deduction strategy Drools Production and click Find.

Resultr-iota shows 3 SURE ALERTS; the Find dialog lists the three objectives to satisfy.

04 · Step

Review the solution: one shared chain, stocks in the flow

The three orders share one production chain: the components are ordered once from the five supplier functions (Order components from a supplier (B-Florida) … (F-Sweden)), one loop makes the eSkates of the three orders, one loop packages them in lots of 50 and one loop allocates the lots to the stocks of the customers. The chain then forks into one Deliver to a customer per customer. Allocate a lot requires no partner: the machine which provides it, Allocation system 1, chooses at each run the customer stock which gets the lot, after its allocation strategy property: Round robin (the default, one lot to each customer in turn) or First come, first served (the order activated first gets all its lots, then the next). The strategy is read at each lot: a change applies to the next lots. A customer order with no stock of lots belonging to that customer (Belongs_To) makes the deduction fail with a message naming the customer. The stocks sit in the flow between the task that fills them and the task that takes from them, drawn as triangles with their minimum and maximum thresholds.

  1. Read the review: Solution found, Solution_1_FIRST. Zoom out to follow the chain.

Result11 task(s) in the process: the five supplier orders, Make an eSkate E12 × 400 (200 + 150 + 50), Package a lot × 8, Allocate a lot × 8, then Deliver to a customer (H-LA) × 4, (I-Italy) × 3 and (G-Canada), one lot without a loop.

05 · Step

Deploy: the loop starts, then waits for the batteries

Each supplier order passes once. The Make loop takes from the component stocks: every iteration takes 4 wheels, 1 battery, 1 engine and 1 woodboard, all or nothing, and puts 1 eSkate in the eSkate E12 stock. The battery stock runs out first: the task that lacks a stock waits and its box turns violet.

  1. Click Deploy and supervise.
  2. Open the Process tab of the supervision and follow the Solution workflow.

ResultThe orders are done (green); each stock shows its level and its last change (88 ▼ −4 for the wheels); the loop shows its counter and a progress bar, and waits with Waiting for Battery B84 stock while the battery stock is at 0.

06 · Step

Play the supplier receipts

The scenario Supplier Deliveries of r-iosemit activates four receipts of the use case between 09:47 and 09:50, each with its quantity: batteries 500, engines 400, wheels 1600, woodboards 400. Each receipt says what it produces and into which stock (Wheel into the Wheel S14 stock, a Produces edge); r-io adds the quantity to that stock; the waiting loop starts again at once, without polling.

  1. In r-iosemit, TIMELINE, choose the scenario Supplier Deliveries.
  2. Click ▶, choose Continuous, speed ×60, tasks Auto, then Start.

ResultThe timeline reads 4 dates · 8 DATA steps; each receipt is a REFERENCE → new ACTIVE actuality.

07 · Step

Follow the loops and the stocks

Each stock badge shows the level and its last change, live: ▼ when a task takes, ▲ when a task or a receipt puts. Hovering a stock shows the curve of its level since the deployment, with its thresholds. A loop stays orange until its last iteration.

  1. In the Solution workflow, scroll from the stocks of components to the deliveries.

ResultThe Make loop runs as fast as the stocks allow; the eSkate E12 stock rises one eSkate at a time; Package a lot starts when the Make loop has ended.

08 · Step

Package, allocate and ship

Each Package iteration takes 50 eSkates and puts one lot in Skateboard Lots stock; each Allocate moves a lot to the stock of the customer chosen by the machine (with Round robin: G-Canada, H-LA, I-Italy, then H-LA and I-Italy in turn); each Deliver to a customer takes a lot out of the plant. The level sensor of the customer lots echoes each fall, and its CEP rule activates a Delivery to … which consumes the fall in lots out of that stock (a Consumes edge). The supervision holds these deliveries as covered: they touch a stock of the running solution, so they raise no alert.

  1. Let r-iosemit play to the end of the timeline.
  2. In the Solution workflow, follow the chain to the three Deliver to a customer. When the three deliveries are over, the supervision ends by itself (No alert detected).

ResultThe chain goes to the end: Make × 400, Package × 8, Allocate × 8, then Deliver × 1 / 3 / 4; the loops turn green with Iterations done N / N, and Delivery to G-Canada (1 lot), I-Italy (3) and H-LA (4) become active. The eSkate E12 stock ends at 0: the 400 eSkates made have all left in 8 lots. The supervision has kept all along the same status, Failing, Improvable, Uncovered, Wrong and Obsolete at 0 (Weighted Graph Distance): the run raises no alert.

Skateboard Logistics / Scénario guidé

Réceptions des fournisseurs : un processus piloté par les stocks

Trois commandes de clients apportent la demande. r-io déduit une seule chaîne de production pour les trois commandes, des commandes aux fournisseurs jusqu’aux livraisons, avec les stocks dans le flux et des boucles dimensionnées par la somme des commandes ; la machine d’attribution répartit les lots entre les clients. Une fois déployé, le moteur de workflow prend et pose les quantités : les boucles fabriquent les eSkates jusqu’à épuisement des batteries, puis attendent. Les réceptions des fournisseurs jouées par r-iosemit remplissent les stocks, les boucles repartent, et les lots sont emballés, attribués et expédiés aux trois clients.

Ce que montre ce scénario

Les stocks pilotent le processus. La déduction remonte de la demande à travers les stocks et dimensionne les boucles ; le moteur est seul à écrire les niveaux et fait attendre une tâche tant qu’un stock manque ; une réception ajoute sa quantité à son stock ; les livraisons sont les baisses des stocks de lots vues par le CEP ; la supervision montre en direct les niveaux, les compteurs et les attentes.

01 · Étape

Charger le cas d’usage et ouvrir les applications

Skateboard Logistics modélise A-Atlanta, qui assemble des eSkates dans son usine d’Atlanta (la référence produit eSkate E12, dont la nomenclature prend 4 × Wheel S14, 1 × Battery B84, 1 × Engine V8 et 1 × Woodboard W14 : des lignes From Product sur des références du catalogue, pas des biens), cinq fournisseurs de B à F et trois clients dont les commandes portent la demande : H-LA 200, I-Italy 150 et G-Canada 50 eSkates, chacune une ligne From Product sur eSkate E12 que la déduction convertit en lots de 50 (4, 3 et 1 lots). A-Atlanta fabrique (Makes) et livre (Delivers) le pack eSkate E12 lot of 50, chaque fournisseur livre (Delivers) ses composants. L’usine compte neuf stocks, chacun avec un capteur de niveau. Partir d’un r-io neuf : un run prend dans les stocks et les remplit, et les stocks du cas d’usage ne reviennent à leur niveau qu’au rechargement.

  1. Dans r-ioga, Projects workspace, cliquer la carte Skateboard Logistics, puis Load, et fermer la confirmation par OK.
  2. Depuis la colonne APPLICATIONS de Project List, ouvrir R-IOSE, R-IOTA et R-IOSEMIT, chacune dans son onglet.

RésultatLes trois applications s’ouvrent sur le projet Skateboard Logistics.

02 · Étape

Démarrer les capteurs des stocks

Le moteur de workflow écrit les niveaux des stocks ; chaque capteur de niveau ne fait que renvoyer la nouvelle valeur comme un événement du terrain, que les règles CEP lisent pour activer les livraisons. Un capteur non démarré n’émet rien : sans cette étape, les lots quittent l’usine mais aucune livraison n’est vue. Démarrer un capteur écrit aussi son availability (Available, la valeur par défaut d’une Resource) ; la supervision compte une propriété absente du plan comme sa valeur par défaut, ce changement ne lève donc aucune alerte.

  1. Dans r-iose, onglet DATA, cliquer Start All Sensors.

RésultatLes neuf capteurs (Engine V8 stock level, Battery B84 stock level, … Lots allocated to H-LA level) affichent STARTED.

03 · Étape

Déduire le processus à partir des commandes

Les trois commandes de janvier des clients (January order of H-LA (200 eSkates), d’I-Italy (150 eSkates), de G-Canada (50 eSkates)) sont des actualités actives : r-iota les montre en alertes, chacune traitée par l’objectif Treat the January order of …. La déduction part de la demande de chaque commande et remonte les stocks : expédier demande des lots, un lot s’emballe à partir de 50 eSkates, un eSkate se fabrique à partir des quatre stocks de composants, et ces stocks sont remplis par les commandes aux fournisseurs. Elle calcule aussi combien de fois chaque fonction doit tourner.

  1. Dans r-iota, cliquer FIND SOLUTION(S).
  2. Dans la boîte, garder la stratégie de déduction Drools Production et cliquer Find.

Résultatr-iota affiche 3 SURE ALERTS ; la boîte Find liste les trois objectifs à satisfaire.

04 · Étape

Revoir la solution : une chaîne commune, les stocks dans le flux

Les trois commandes partagent une seule chaîne de production : les composants sont commandés une fois par les cinq fonctions fournisseurs (Order components from a supplier (B-Florida) … (F-Sweden)), une boucle fabrique les eSkates des trois commandes, une boucle les emballe par lots de 50 et une boucle attribue les lots aux stocks des clients. La chaîne se sépare ensuite en un Deliver to a customer par client. Allocate a lot ne requiert aucun partenaire : la machine qui la fournit, Allocation system 1, choisit à chaque passage le stock client qui reçoit le lot, selon sa propriété allocation strategy : Round robin (par défaut, un lot à chaque client à tour de rôle) ou First come, first served (la commande activée la première reçoit tous ses lots, puis la suivante). La stratégie est lue à chaque lot : un changement s’applique aux lots suivants. Une commande client sans stock de lots appartenant à ce client (Belongs_To) fait échouer la déduction, avec un message qui nomme le client. Les stocks sont placés dans le flux entre la tâche qui les remplit et celle qui y prend, dessinés en triangles avec leurs seuils minimum et maximum.

  1. Lire la revue : Solution found, Solution_1_FIRST. Dézoomer pour suivre la chaîne.

Résultat11 task(s) in the process : les cinq commandes fournisseurs, Make an eSkate E12 × 400 (200 + 150 + 50), Package a lot × 8, Allocate a lot × 8, puis Deliver to a customer (H-LA) × 4, (I-Italy) × 3 et (G-Canada), un lot sans boucle.

05 · Étape

Déployer : la boucle démarre, puis attend les batteries

Chaque commande fournisseur passe une fois. La boucle Make prend dans les stocks de composants : chaque itération prend 4 roues, 1 batterie, 1 moteur et 1 planche, tout ou rien, et pose 1 eSkate dans le stock eSkate E12. Le stock de batteries s’épuise le premier : la tâche à qui il manque un stock attend et sa boîte devient violette.

  1. Cliquer Deploy and supervise.
  2. Ouvrir l’onglet Process de la supervision et suivre le Solution workflow.

RésultatLes commandes sont faites (vert) ; chaque stock affiche son niveau et son dernier écart (88 ▼ −4 pour les roues) ; la boucle affiche son compteur et une barre d’avancement, et attend avec Waiting for Battery B84 stock tant que le stock de batteries est à 0.

06 · Étape

Jouer les réceptions des fournisseurs

Le scénario Supplier Deliveries de r-iosemit active quatre réceptions du cas d’usage entre 09:47 et 09:50, chacune avec sa quantité : batteries 500, moteurs 400, roues 1600, planches 400. chaque réception dit ce qu’elle produit et dans quel stock (Wheel dans le Wheel S14 stock, une arête Produces) ; r-io ajoute la quantité à ce stock ; la boucle en attente repart aussitôt, sans scrutation.

  1. Dans r-iosemit, TIMELINE, choisir le scénario Supplier Deliveries.
  2. Cliquer ▶, choisir Continuous, vitesse ×60, tâches Auto, puis Start.

RésultatLa frise affiche 4 dates · 8 DATA steps ; chaque réception est une actualité REFERENCE → new ACTIVE.

07 · Étape

Suivre les boucles et les stocks

La pastille de chaque stock affiche le niveau et son dernier écart, en direct : ▼ quand une tâche prend, ▲ quand une tâche ou une réception pose. Le survol d’un stock montre la courbe de son niveau depuis le déploiement, avec ses seuils. Une boucle reste orange jusqu’à sa dernière itération.

  1. Dans le Solution workflow, défiler des stocks de composants jusqu’aux livraisons.

RésultatLa boucle Make avance au rythme des stocks ; le stock eSkate E12 monte d’un eSkate à la fois ; Package a lot démarre quand la boucle Make est finie.

08 · Étape

Emballer, attribuer et expédier

Chaque itération de Package prend 50 eSkates et pose un lot dans Skateboard Lots stock ; chaque Allocate déplace un lot vers le stock du client choisi par la machine (en Round robin : G-Canada, H-LA, I-Italy, puis H-LA et I-Italy à tour de rôle) ; chaque Deliver to a customer sort un lot de l’usine. Le capteur de niveau des lots du client renvoie chaque baisse, et sa règle CEP active un Delivery to … qui consomme la baisse en lots dans ce stock (une arête Consumes). La supervision tient ces livraisons pour couvertes : elles touchent un stock de la solution en cours, elles ne lèvent donc aucune alerte.

  1. Laisser r-iosemit jouer jusqu’au bout de la frise.
  2. Dans le Solution workflow, suivre la chaîne jusqu’aux trois Deliver to a customer. Quand les trois livraisons sont finies, la supervision s’arrête d’elle-même (No alert detected).

RésultatLa chaîne va au bout : Make × 400, Package × 8, Allocate × 8, puis Deliver × 1 / 3 / 4 ; les boucles passent au vert avec Iterations done N / N, et Delivery to G-Canada (1 lot), I-Italy (3) et H-LA (4) deviennent actives. Le stock eSkate E12 finit à 0 : les 400 eSkates fabriqués sont tous partis en 8 lots. La supervision a gardé tout du long le même état, Failing, Improvable, Uncovered, Wrong et Obsolete à 0 (Weighted Graph Distance) : le run ne lève aucune alerte.