Install
Works with Drupal: ^11.3 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
WARNING: THERE IS NO MIGRATION PATH. YOU MUST REINSTALL FROM SCRATCH.
Do not update an existing site to this release. Orchestra ships no update hooks, and none is coming until the first beta release. A site on an earlier alpha holds a database and configuration this code does not match.
Uninstall the Orchestra modules, drop what they leave behind, and install 1.0.0-alpha26 fresh. Every instance, token, task, incident, variable, attachment and delegation from an earlier alpha is lost, and that is expected.
Between alpha25 and alpha26 in particular, the engine gains a table, orchestra_engine_event, for events kept until a step waits for them. orchestra_mail becomes a hidden email layer that sends nothing alone: install orchestra_mail_core to send through Drupal core mail, or orchestra_easy_email to send through Easy Email templates. The permissions Process Orchestra tasks and Reassign Orchestra tasks now come from orchestra_engine. The edit and delete pages of statuses, applications, notification profiles and tenants move under manage/. Two sites talking to each other must run the same release: a notice is now signed together with its purpose.
New
- A step can wait for a named event that happens elsewhere. The new Wait for an event step parks until an event with its name is delivered to its instance, and writes the event's data to a variable. A source delivers an event to the one step waiting for it, or broadcasts it to every waiting step, by instance id or by correlation key. An event that arrives before its step waits is kept for the instance, an hour by default, and taken when the step parks. #3634495: Let a step wait for a named event, delivered to one waiting step or broadcast to all, by instance id or correlation key
- Outside services can call a signed webhook that delivers an Orchestra event. The new
orchestra_webhooksubmodule gives each webhook its own address, one tenant and one event name, a secret held by the Key module with a previous secret accepted during a rotation, and a format that knows how its sender signs a call and where the event id and the reference it is about are. #3634493: Add an orchestra_webhook submodule: a signed incoming webhook that delivers an Orchestra event - The Wait for an event step can store each field of the event's data in a variable of its own, with the same four settings as the HTTP request step: store each field separately, split nested objects, split lists by position, and the fields to store. Data the step cannot store fails the step at once, without a retry. #3634566: Let the Wait for an event step store each field of the event's data in its own variable
- Orchestra's emails go out through one sender, so nobody gets a notification twice. Orchestra Mail decides which emails a notification goes out as and to whom; Orchestra Mail Core sends them through Drupal core mail, and Orchestra Easy Email takes over when it is enabled. The status report names the sender in use, and warns when there is none. #3634642: Make Orchestra Mail the email layer, sending through Orchestra Mail Core or Easy Email
Fixes worth naming
- A Key could be deleted from under what signs in with it. A remote and an HTTP request step named their Key without depending on it, and a webhook went with its Key. Deleting a Key that a remote, a signing-in HTTP request step or a webhook's current secret uses is now refused, and the Key's delete page says what uses it. #3634635: Refuse to delete a key that a remote, an HTTP request step or a webhook signs in with
- A config import could orphan what was scoped to a tenant. A status, an application, a notification profile and a webhook did not depend on their tenant, so an import removing the tenant left them scoped to a tenant that no longer exists. Each now depends on it, and core refuses such an import, naming each. #3634668: Make every configuration scoped to a tenant depend on it, so a config import cannot orphan it
- Without the inbox, no task could be reassigned. The engine checks the task permissions, but the inbox declared them, so on a site running operations alone no role could hold them and every reassignment was refused. #3634637: Declare the task permissions in orchestra_engine, which checks them
- A status, an application or a notification profile named
addcould not be edited: its address opened a blank add form. #3634636: Put every Orchestra config entity page under manage/, so one named add can be edited - A calling site whose return address carried a
#fragmentnever received its presence code, which was added inside the fragment. The code now goes in the query, the fragment last. #3634639: Keep a presence return address's fragment last, and share the client and server presence code - A role or user named
0was dropped from an assignment, and a timeout action saw a copy of its step with the step's own settings replaced by the action's. Each action now reads its own settings and receives the step as the workflow defines it. #3634638: Let timeout actions read their own settings beside the real step, and share the engine's repeated rules - A stale copy of a step could fail an instance whose step had already moved on. Failing a parked step now claims it first, and says what it did. #3634566
- An audience or a composite condition of another module was left out by the editors. The assignment editor offered its "Notify this audience" checkbox only to audiences built on Orchestra's base class, and the complete modeler drew a composite condition as a single condition unless it extended Orchestra's own. Both now ask for an interface. #3634689: Type Orchestra's dependencies, exceptions and plugin checks by their interfaces, not their classes
- Two pages did more work than they needed. A workflow saved from the BPMN modeler parsed its diagram once per untyped gateway, and now once: about half the time per save on a diagram with ten. The task views columns loaded one account per row for delegated work, and now load a page's accounts at once. #3634641: Parse a stored diagram once per save, and share the editors' and views' repeated builders #3634640: Share the human step forms, doorways and inbox builders between tasks and operations
Changed
- A site that emailed through Orchestra Mail enables
orchestra_mail_core; one that used Orchestra Easy Email getsorchestra_mailwith it. Ahook_mail_alter()or a mailer policy keyed on theorchestra_mailmodule keys onorchestra_mail_core. #3634642 - Statuses, applications, notification profiles and tenants are edited at
{collection}/manage/{id}and deleted at{collection}/manage/{id}/delete, as remotes and webhooks already were. #3634636 - Orchestra Delegation no longer requires the inbox, so a site using operations alone can install it. #3634637
- The assignment editor offers the "Notify this audience" checkbox only to an audience that can name people to notify, so the Everyone audience shows none. The role audiences say on their own settings form that the authenticated and anonymous roles have nobody to notify. #3634689
- A notice between sites is signed as
orchestra.notice.{timestamp}.{body}, and a webhook call in the Orchestra format asorchestra_webhook.call.{timestamp}.{body}, so a signature made for one purpose never verifies for another. Header names are unchanged. #3634580: Separate Orchestra's signature from how it travels
For theme developers
- A card's labelled fields come from one template,
orchestra-card-field.html.twig, which the card, request card and task card templates include. #3634641
For module developers
- Events:
EventDeliveryInterface(deliverEvent(),deliverEventByCorrelationKey(),broadcastEvent(),broadcastEventByCorrelationKey(), and the limitsMAX_DATA_BYTES,DEFAULT_KEEP_SECONDSandMAX_KEEP_SECONDS) returns anEventDeliveryResult;EventTaskTypeInterfacelets another module offer a step that waits for events.ProcessControlInterface::failParkedStep()takes an optional$retryand returns aParkedStepFailure.FieldVariablesConfigTraitgives a step the four field-splitting settings. #3634495 #3634566 - Signatures:
HmacSignature,OrchestraSignaturewithSignableInterface,SignedPayload,NoticePayloadandTimestampedSignature, andSignedRequestfor the headers.NoticeSignatureis removed. Webhook senders areWebhookFormatplugins. #3634493 #3634580 - Email:
MailBatcher,MailBatch,MailSenderInterface(a sender is a service taggedorchestra_mail.sender, the highest priority sends) andMailAttachments.OrchestraNotificationEventlosesisShared()andgroupByDisposition(), andNotificationAttachmentlosestoMailArray(). #3634642 - Every plugin manager has its own interface (
TaskTypeManagerInterface,NodeFeatureManagerInterface, and fifteen more), and its service is aliased to it for autowiring instead of to the class.TokenStorageInterface,AudienceInterface::isNotifiable(),CompositeConditionInterfaceandInteractionUrlsInterface::getSignalLink()are new.InteractionManagerInterface::isAuthorable()takes the interaction descriptor, ascreateFromDescriptor()does.AudienceBase::buildNotifyToggleElement()andWebhookFormatManager::getFormatOptions()are removed. #3634689 - Dependencies: a task type implementing
DependentTaskTypeInterfacenames the config its step uses, andDependencyRemovalRefusingTraitrefuses the deletion of config still in use.TenantDependencyTraitmakes a tenant-scoped config entity depend on its tenant. #3634635 #3634668 - Shared rules:
WorkItemManagerInterface::PROCESS_TASKS_PERMISSIONandREASSIGN_TASKS_PERMISSIONreplaceDelegationResolver::ACT_PERMISSION;WorkItemInterface::TERMINAL_STATES,ProcessInstanceInterface::TERMINAL_STATES,StateGuard,ListSettingandCapabilityPluginManagerInterface::getPluginOptions()name what the engine wrote several times. A timeout action reads its own$this->configurationand receives the workflow's node. #3634637 #3634638 - Admin pages:
TenantScopedEntityFormBase,TenantScopedListBuilderBaseandTenantContextInterface::getTenantScopeOptions();InstanceFilterForm::getStateOptions()is removed in favour ofProcessInstance::getStateLabels(). #3634636 - Human steps and sites:
IdentityGatewayBasefor the task and operation doorways,InteractionManager::createFromDescriptor(),StatusMessages::build(),PresenceHeader,ActingConsumerandModelComponentseach hold what several places repeated. #3634640 #3634639 #3634641
Housekeeping
- The codebase metrics page is refreshed: 1,814 files and 170,264 lines of code.