Init
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?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;
|
||||
}
|
||||
Reference in New Issue
Block a user