22 lines
522 B
PHP
22 lines
522 B
PHP
<?php
|
|
|
|
namespace App\Temporal\OrderFulfillment;
|
|
|
|
use Temporal\Workflow\WorkflowInterface;
|
|
use Temporal\Workflow\WorkflowMethod;
|
|
use Temporal\Workflow\SignalMethod;
|
|
use Temporal\Workflow\QueryMethod;
|
|
|
|
#[WorkflowInterface]
|
|
interface OrderFulfillmentWorkflowInterface
|
|
{
|
|
#[WorkflowMethod]
|
|
public function processOrder(int $orderId, array $simulationConfig = []);
|
|
|
|
#[SignalMethod]
|
|
public function confirmShipping(string $trackingNumber): void;
|
|
|
|
#[QueryMethod]
|
|
public function getOrderStatus(): array;
|
|
}
|