Skip to main content
Version: 4.1

State Machine - Available Workflows

Order Sale Workflow

In CoreShop 3.x the Cart, Order and Quote are the same DataObject. To differentiate between them, we use states with workflows.

State Machine: coreshop_order_sales_type

Available Places

NameDescription
cartInitial State - Cart
orderOnce the customer finishes the checkout, pre-payment, it becomes an order
quoteOnce the customer finishes the checkout and requests a quote

Available Transition

NameAllowed from Places
ordercart
cartcart
quotecart

Order Workflow

State Machine: coreshop_order Description: The Order Workflow is the most simplest and also the most important one.

Available Places

NameDescription
initializedInitial State. Just before a order gets saved for the very first time.
newa new order has been created
confirmedcustomer has successfully placed an order
cancelledorder has been cancelled
completethe order is complete (all payments and shipments have been successfully processed)

Available Transition

NameAllowed from Places
createinitialized
confirmnew
cancelnew, confirmed
completeconfirmed

Visualization

coreshop_order Workflow Visualization

Order Payment Workflow

State Machine: coreshop_order_payment Description: Defines the summary payment state

Available Places

NameDescription
neworder has been initial created
awaiting_paymenta payment has been captured
partially_paidone of the order payments has been paid
cancelledall payments has been cancelled
paidall order payments successfully paid
partially_refundedone of the order payments has been refunded
refundedall payments has been refunded

Available Transition

NameAllowed from Places
request_paymentnew
partially_payawaiting_payment, partially_paid
cancelawaiting_payment
partially_refundpaid, partially_paid, partially_refunded
refundpaid, partially_paid, partially_refunded

Visualization

coreshop_order_payment Workflow Visualization

Order Shipment Workflow

State Machine: coreshop_order_shipment Description: Defines the summary shipment state

Available Places

NameDescription
neworder has been initial created
cancelledall shipments has been cancelled
partially_shippedone of the order shipments has been shipped
shippedall order shipments has been shipped

Available Transition

NameAllowed from Places
partially_shipnew
cancelnew
shipnew, partially_shipped

Visualization

coreshop_order_shipment Workflow Visualization

Order Invoice Workflow

State Machine: coreshop_order_invoice Description: Defines the summary invoice state

Available Places

NameDescription
neworder has been initial created
cancelledall invoices has been cancelled
partially_invoicedone of the order invoices has been invoiced
invoicedall order invoices has been successfully invoiced

Available Transition

NameAllowed from Places
cancelnew
partially_invoicenew
invoicenew, partially_invoiced

Visualization

coreshop_order_invoice Workflow Visualization

Payment Workflow

State Machine: coreshop_payment Description: Defines the single payment state

Available Places

NameDescription
newnew payment has been created
processingpayment has been captured
completedpayment is complete
failedpayment has failed
cancelledpayment has been canceled
refundedpayment has been refunded

Available Transition

NameAllowed from Places
processnew
completenew, processing
failnew, processing
cancelnew, processing
refundcompleted

Visualization

coreshop_payment Workflow Visualization

Shipment Workflow

State Machine: coreshop_shipment Description: Defines the single shipment state

Available Places

NameDescription
newnew shipment has been created
readyshipment has been assigned to order
cancelledshipment has been cancelled
shippedshipment has been shipped

Available Transition

NameAllowed from Places
createnew
shipready
cancelready

Visualization

coreshop_shipment Workflow Visualization

Invoice Workflow

State Machine: coreshop_invoice Description: Defines the single invoice state

Available Places

NameDescription
newnew invoice has been created
readyinvoice has been assigned to order
cancelledinvoice has been cancelled
completeinvoice has been completed

Available Transition

NameAllowed from Places
createnew
cancelready
completeready

Visualization

coreshop_invoice Workflow Visualization