package com.alexanderlogistics.einvoice; import org.imixs.archive.core.SnapshotService; import org.imixs.workflow.ItemCollection; import org.imixs.workflow.SignalAdapter; import org.imixs.workflow.engine.DocumentService; import org.imixs.workflow.engine.WorkflowService; import org.imixs.workflow.exceptions.AdapterException; import org.imixs.workflow.exceptions.PluginException; import com.alexanderlogistics.BusinessPartnerService; import com.alexanderlogistics.ksef.api.KSeFAPIService; import jakarta.inject.Inject; /** * * @version 1.0 * @author rsoika */ public class QRTest implements SignalAdapter { @Inject WorkflowService workflowService; @Inject DocumentService documentService; @Inject SnapshotService snapshotService; @Inject BusinessPartnerService businessPartnerService; @Inject KSeFAPIService kSeFAPIService; /** * This method * * @throws PluginException */ @Override public ItemCollection execute(ItemCollection workitem, ItemCollection event) throws AdapterException, PluginException { kSeFAPIService.embedQRCode(workitem); return workitem; } }