This Gist was created from KIE Sandbox.
This file is temporary and you should not be seeing it. If you are, it means that creating this Gist failed and it can safely be deleted.
<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" xmlns:xsi="xsi" id="_Cl3qMCuQEDqbOehe6TlnSA" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd http://www.omg.org/spec/DD/20100524/DC DC.xsd http://www.omg.org/spec/DD/20100524/DI DI.xsd " exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20"> | |
<bpmn2:process id="Untitled" drools:packageName="com.example" drools:version="1.0" drools:adHoc="false" name="Untitled" isExecutable="true" processType="Public"> | |
<bpmn2:sequenceFlow id="_2C31A93F-81BF-41B6-8D53-91F4EC98DFB7" sourceRef="_466045AF-71FE-45A6-B961-4CEEEADC3BC0" targetRef="_08E7DFEE-C1C7 |
<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" xmlns:xsi="xsi" id="_Ma6csCuQEDqEDvd0qqUguA" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd http://www.omg.org/spec/DD/20100524/DC DC.xsd http://www.omg.org/spec/DD/20100524/DI DI.xsd " exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20"> | |
<bpmn2:process id="Untitled" drools:packageName="com.example" drools:version="1.0" drools:adHoc="false" name="Untitled" isExecutable="true" processType="Public"> | |
<bpmn2:sequenceFlow id="_14BD9836-0A40-407F-89CF-2156BDABCAF9" sourceRef="_F3DCD923-1A72-4D82-8BB4-9A6FA4B7D115" targetRef="_D03D9791-7DE9 |
export const routes = { | |
nav: { | |
root: { path: "/", name: "" }, | |
home: { path: "/home", name: "Home" }, | |
nbd: { path: "/nail-biting-detector", name: "Nail-Biting Detector" }, | |
// Your new route goes here | |
}, | |
images: { | |
robot: "/static/images/robot.png", |
export const NAIL_BITING_DETECTOR_MODEL: Readonly<ModelDescriptor> = { | |
name: "nail-biting-detector", | |
classes: ["normal", "nail-biting"], | |
modelJson: routes.models.nbd.modelJson, | |
metadataJson: routes.models.nbd.metadataJson, | |
}; | |
// You new model goes here |
export function NailBitingDetectorPage() { | |
const MESSAGE_STOP = "STOP IT!"; | |
const { notify } = useNotification(); | |
const [play] = useSound(routes.sounds.alert); | |
const [detected, setDetected] = useState(false); | |
// Load the model | |
const { isModelLoaded, predictClass } = useModel(NAIL_BITING_DETECTOR_MODEL); |
export function App() { | |
return ( | |
<HashRouter> | |
<AppProvider> | |
<Routes> | |
<Route path={routes.nav.root.path} element={<Navigate to={routes.nav.home.path} />} /> | |
<Route path={routes.nav.home.path} element={<HomePage />} /> | |
<Route path={routes.nav.nbd.path} element={<NailBitingDetectorPage />} /> | |
{/* Your new route goes here */} | |
<Route path="*" element={<Navigate to={routes.nav.home.path} />} /> |
# Your OpenShift information goes here | |
OPENSHIFT_SERVER: ${{ secrets.OPENSHIFT_SERVER }} | |
OPENSHIFT_TOKEN: ${{ secrets.OPENSHIFT_TOKEN }} | |
OPENSHIFT_NAMESPACE: "caponetto-dev" |
# Your image details customization goes here | |
IMAGE_NAME: "teachable-machine-playground" | |
IMAGE_TAG: "latest" | |
IMAGE_REGISTRY: "quay.io/caponetto" | |
REGISTRY_USER: "caponetto" |
<?xml version="1.0" encoding="UTF-8"?> | |
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="http://www.trisotech.com/definitions/_88671935-e3b8-448d-bd1d-8125a5e3c0ec" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:kie="http://www.drools.org/kie/dmn/1.2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" xmlns:tc="http://www.omg.org/spec/DMN/20160719/testcase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:trisofeed="http://trisotech.com/feed" xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" xmlns:triso="http://www.trisotech.com/2015/triso/modeling" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="_88671935-e3b8-448d-bd1d-8125a5e3c0ec" name="Drawing 1" expressionLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="http://www.trisotech.com/definitions/_88671935-e3b8-448d-bd1d-8125a5e3c0ec"> | |
<dmn:extensionElements/> | |
<dmn:de |
This Gist was created from KIE Sandbox.
This file is temporary and you should not be seeing it. If you are, it means that creating this Gist failed and it can safely be deleted.