This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as EditorEnvelope from "@kogito-tooling/editor/dist/envelope"; | |
import { Base64PngEditorFactory } from "base64png-editor"; | |
import { ChannelType, getOperatingSystem } from "@kogito-tooling/channel-common-api"; | |
declare global { | |
export const acquireVsCodeApi: any; | |
} | |
EditorEnvelope.init({ | |
container: document.getElementById("envelope-app")!, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="_q-rKAOpJEDi52M3ZV-_AxQ" exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20"> | |
<bpmn2:itemDefinition id="_travellerItem" structureRef="org.acme.travel.Traveller"/> | |
<bpmn2:itemDefinition id="__0E0784C3-1BEC-4A51-A5E6-D7E5DA3A4402_eventInputXItem" structureRef="org.acme.travel.Traveller"/> | |
<bpmn2:itemDefinition id="processedtravellersType" structureRef="org.acme.travel.Traveller"/> | |
<bpmn2:itemDefinition id="__60FA6326-76DC-4DB2-AB06-DB8AC8EE8DC8_namespaceInputXItem" structureRef="java.lang.String"/> | |
<bpmn2:itemDefinition id="__60FA6326-76DC-4DB2-AB06-DB8AC8EE8DC8_modelInputXItem" str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Item } from "./TodoListEnvelopeApi"; | |
export interface TodoListApi { | |
addItem(item: string): Promise<void>; | |
getItems(): Promise<Item[]>; | |
markAllAsCompleted(): void; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const webviewPanel = vscode.window.createWebviewPanel(pageId, this.envelopeLocator.title, ViewColumn.Beside, { | |
retainContextWhenHidden: true, | |
enableCommandUris: true, | |
enableScripts: true, | |
localResourceRoots: [vscode.Uri.file(this.context.extensionPath)], | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface PingPong extends PingPongApi { | |
reactComponent?(): React.ReactNode; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { EditorEnvelopeLocator } from "@kogito-tooling/editor/dist/api"; | |
export function Base64PngPage() { | |
... | |
const editorEnvelopeLocator: EditorEnvelopeLocator = useMemo(() => { | |
return { | |
targetOrigin: window.location.origin, | |
mapping: new Map([ | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="_C17hgerjEDidsYClXOoC2w" exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20"> | |
<bpmn2:itemDefinition id="_travellerItem" structureRef="org.acme.travel.Traveller"/> | |
<bpmn2:itemDefinition id="__0E0784C3-1BEC-4A51-A5E6-D7E5DA3A4402_eventInputXItem" structureRef="org.acme.travel.Traveller"/> | |
<bpmn2:itemDefinition id="processedtravellersType" structureRef="org.acme.travel.Traveller"/> | |
<bpmn2:itemDefinition id="__60FA6326-76DC-4DB2-AB06-DB8AC8EE8DC8_namespaceInputXItem" structureRef="java.lang.String"/> | |
<bpmn2:itemDefinition id="__60FA6326-76DC-4DB2-AB06-DB8AC8EE8DC8_modelInputXItem" str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bpmn2:definitions xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:drools="http://www.jboss.org/drools" id="_XN69QesCEDiQsPYqMToOpA" exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20"> | |
<bpmn2:process id="new-file" drools:packageName="com.example" drools:version="1.0" drools:adHoc="false" name="new-file" isExecutable="true" processType="Public"> | |
<bpmn2:startEvent id="_F7F387DC-210C-4CC7-A904-3F18127F8A12"/> | |
</bpmn2:process> | |
<bpmndi:BPMNDiagram> | |
<bpmndi:BPMNPlane bpmnElement="new-file"> | |
<bpmndi:BPMNShape id="shape__F7F387DC-210C-4CC7-A904-3F18127F8A12" bpmnElement="_F7F387DC-210C-4CC7-A904-3F18127F8A12"> | |
<dc:Bounds height="56" width="56" x="484" y="134"/> | |
</bpmndi:BPMNShape> | |
</bpmndi:BPMNPlane> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="https://kiegroup.org/dmn/_273DD4F7-5297-45EB-972C-DDD6D0DCC10B" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" xmlns:kie="http://www.drools.org/kie/dmn/1.2" xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="_8D9EFAA6-F6BA-4A97-A9B9-2065A4F0E5D3" name="48772709-2AA5-4FA3-8AFF-9981E60BE9D6" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="https://kiegroup.org/dmn/_273DD4F7-5297-45EB-972C-DDD6D0DCC10B"> | |
<dmn:extensionElements/> | |
<dmn:inputData id="_40D179C7-B753-40E2-81FB-62953B8974BD" name="InputData-1"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_66AE1072-1E06-446A-9351-C151A6108D9A" name="InputData-1"/> | |
</dmn:inputData> | |
<dmndi:DMNDI> | |
<dmndi:DMNDiagram> | |
<di:extension> | |
<kie:ComponentsWidthsExtension/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bpmn2:definitions xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="_eGkCEOucEDiSvafW4_WMTQ" exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20"> | |
<bpmn2:process id="new-file" drools:packageName="com.example" drools:version="1.0" drools:adHoc="false" name="new-file" isExecutable="true" processType="Public"> | |
<bpmn2:sequenceFlow id="_F5FC4AA0-0A79-4C9B-A1E2-3FFAC259E0BE" sourceRef="_8C9EFAD5-6AF7-4F39-BC12-F1E7B2BB1A6A" targetRef="_70320BB9-0DA8-4BBA-8E8E-856EC7C8BACA"> | |
<bpmn2:extensionElements> | |
<drools:metaData name="isAutoConnection.source"> | |
<drools:metaValue><![CDATA[true]]></drools:metaValue> | |
</drools:metaData> | |
<drools:metaData name="isAutoConnection.target"> | |