diff --git a/threema-connector-demo/dataclasses/threema/connector/demo/sendDemoMessageData.ivyClass b/threema-connector-demo/dataclasses/threema/connector/demo/sendDemoMessageData.ivyClass index de2de42..43c34d8 100644 --- a/threema-connector-demo/dataclasses/threema/connector/demo/sendDemoMessageData.ivyClass +++ b/threema-connector-demo/dataclasses/threema/connector/demo/sendDemoMessageData.ivyClass @@ -12,3 +12,5 @@ publicKey String #field publicKey PERSISTENT #fieldModifier privatekey String #field privatekey PERSISTENT #fieldModifier +sendAnother Boolean #field +sendAnother PERSISTENT #fieldModifier diff --git a/threema-connector-demo/processes/ThreemaDemoProcess.p.json b/threema-connector-demo/processes/ThreemaDemoProcess.p.json index 99478ce..4deb411 100644 --- a/threema-connector-demo/processes/ThreemaDemoProcess.p.json +++ b/threema-connector-demo/processes/ThreemaDemoProcess.p.json @@ -21,7 +21,7 @@ "id" : "f4", "type" : "TaskEnd", "visual" : { - "at" : { "x" : 768, "y" : 168 } + "at" : { "x" : 936, "y" : 168 } } }, { "id" : "f5", @@ -78,7 +78,7 @@ } }, "visual" : { - "at" : { "x" : 464, "y" : 168 }, + "at" : { "x" : 512, "y" : 168 }, "icon" : "res:/webContent/icons/threema-icon_black.png" }, "connect" : { "id" : "f18", "to" : "f7" } @@ -91,10 +91,10 @@ "startMethod" : "start(threema.connector.demo.sendDemoMessageData)", "output" : { "map" : { - "out" : [ - "in", - "result.sendDemoMessageData" - ] + "out" : "result.sendDemoMessageData", + "out.plainMessage" : "\"\"", + "out.receiver" : "\"\"", + "out.type" : "\"\"" } }, "call" : { @@ -107,9 +107,9 @@ } }, "visual" : { - "at" : { "x" : 640, "y" : 168 } + "at" : { "x" : 688, "y" : 168 } }, - "connect" : { "id" : "f16", "to" : "f4" } + "connect" : { "id" : "f24", "to" : "f23" } }, { "id" : "f8", "type" : "RequestStart", @@ -127,7 +127,7 @@ "id" : "f9", "type" : "TaskEnd", "visual" : { - "at" : { "x" : 768, "y" : 280 } + "at" : { "x" : 936, "y" : 280 } } }, { "id" : "f10", @@ -185,7 +185,7 @@ } }, "visual" : { - "at" : { "x" : 464, "y" : 280 }, + "at" : { "x" : 512, "y" : 280 }, "icon" : "res:/webContent/icons/threema-icon_black.png" }, "connect" : { "id" : "f17", "to" : "f13" } @@ -196,6 +196,14 @@ "config" : { "dialogId" : "threema.connector.demo.ResultPage", "startMethod" : "start(threema.connector.demo.sendDemoMessageData)", + "output" : { + "map" : { + "out" : "in", + "out.plainMessage" : "\"\"", + "out.receiver" : "\"\"", + "out.type" : "\"\"" + } + }, "call" : { "params" : [ { "name" : "sendDemoMessageData", "type" : "threema.connector.demo.sendDemoMessageData" } @@ -206,9 +214,9 @@ } }, "visual" : { - "at" : { "x" : 640, "y" : 280 } + "at" : { "x" : 688, "y" : 280 } }, - "connect" : { "id" : "f14", "to" : "f9" } + "connect" : { "id" : "f27", "to" : "f14" } }, { "id" : "f0", "type" : "RequestStart", @@ -225,7 +233,7 @@ "id" : "f1", "type" : "TaskEnd", "visual" : { - "at" : { "x" : 768, "y" : 368 } + "at" : { "x" : 936, "y" : 368 } } }, { "id" : "f2", @@ -267,8 +275,28 @@ } }, "visual" : { - "at" : { "x" : 464, "y" : 368 } + "at" : { "x" : 520, "y" : 368 } }, "connect" : { "id" : "f21", "to" : "f1" } + }, { + "id" : "f23", + "type" : "Alternative", + "visual" : { + "at" : { "x" : 840, "y" : 168 } + }, + "connect" : [ + { "id" : "f16", "to" : "f5", "via" : [ { "x" : 840, "y" : 104 }, { "x" : 272, "y" : 104 } ], "condition" : "in.sendAnother" }, + { "id" : "f29", "to" : "f4" } + ] + }, { + "id" : "f14", + "type" : "Alternative", + "visual" : { + "at" : { "x" : 840, "y" : 280 } + }, + "connect" : [ + { "id" : "f31", "to" : "f10", "via" : [ { "x" : 840, "y" : 216 }, { "x" : 272, "y" : 216 } ], "condition" : "in.sendAnother" }, + { "id" : "f30", "to" : "f9" } + ] } ] } \ No newline at end of file diff --git a/threema-connector-demo/src_hd/threema/connector/demo/ResultPage/ResultPage.xhtml b/threema-connector-demo/src_hd/threema/connector/demo/ResultPage/ResultPage.xhtml index 1b6ebe4..6755089 100644 --- a/threema-connector-demo/src_hd/threema/connector/demo/ResultPage/ResultPage.xhtml +++ b/threema-connector-demo/src_hd/threema/connector/demo/ResultPage/ResultPage.xhtml @@ -40,10 +40,10 @@
- + + value="Close" update="form" icon="pi pi-times" />
diff --git a/threema-connector-demo/src_hd/threema/connector/demo/ResultPage/ResultPageProcess.p.json b/threema-connector-demo/src_hd/threema/connector/demo/ResultPage/ResultPageProcess.p.json index 7f85581..1a3cf61 100644 --- a/threema-connector-demo/src_hd/threema/connector/demo/ResultPage/ResultPageProcess.p.json +++ b/threema-connector-demo/src_hd/threema/connector/demo/ResultPage/ResultPageProcess.p.json @@ -44,7 +44,13 @@ "type" : "HtmlDialogEventStart", "name" : "close", "config" : { - "guid" : "18B23815CA6B079E" + "guid" : "18B23815CA6B079E", + "output" : { + "map" : { + "out" : "in", + "out.sendDemoMessageData.sendAnother" : "false" + } + } }, "visual" : { "at" : { "x" : 96, "y" : 160 } @@ -80,5 +86,22 @@ "at" : { "x" : 208, "y" : 64 } }, "connect" : { "id" : "f7", "to" : "f1" } + }, { + "id" : "f8", + "type" : "HtmlDialogEventStart", + "name" : "sendAnother", + "config" : { + "guid" : "18B8F438B7519CB7", + "output" : { + "map" : { + "out" : "in", + "out.sendDemoMessageData.sendAnother" : "true" + } + } + }, + "visual" : { + "at" : { "x" : 96, "y" : 224 } + }, + "connect" : { "id" : "f9", "to" : "f4" } } ] } \ No newline at end of file diff --git a/threema-connector-demo/src_hd/threema/connector/demo/multipleRecipients/multipleRecipients.xhtml b/threema-connector-demo/src_hd/threema/connector/demo/multipleRecipients/multipleRecipients.xhtml index 502802a..ee2312a 100644 --- a/threema-connector-demo/src_hd/threema/connector/demo/multipleRecipients/multipleRecipients.xhtml +++ b/threema-connector-demo/src_hd/threema/connector/demo/multipleRecipients/multipleRecipients.xhtml @@ -38,7 +38,7 @@ + value="Send" update="form" icon="pi pi-send" /> diff --git a/threema-connector-demo/src_hd/threema/connector/demo/singleRecipient/singleRecipient.xhtml b/threema-connector-demo/src_hd/threema/connector/demo/singleRecipient/singleRecipient.xhtml index d40793b..125b24d 100644 --- a/threema-connector-demo/src_hd/threema/connector/demo/singleRecipient/singleRecipient.xhtml +++ b/threema-connector-demo/src_hd/threema/connector/demo/singleRecipient/singleRecipient.xhtml @@ -49,7 +49,7 @@ + value="Send" update="form" icon="pi pi-send" /> diff --git a/threema-connector-product/README.md b/threema-connector-product/README.md index b8b02a3..79956a8 100644 --- a/threema-connector-product/README.md +++ b/threema-connector-product/README.md @@ -12,7 +12,8 @@ Credentials and credits are required to send messages. The credentials can be cr ## Setup 1. Generate a new key pair using the "createKeyPair" process. -2. Create "End-to-End Threema ID" at: [Request new ID](https://gateway.threema.ch/en/id-request)
+2. Create "End-to-End Threema ID" at: [Request new ID](https://gateway.threema.ch/en/id-request)
+Free credits for testing purposes can be requestet at [support-gateway@threema.ch](mailto:support-gateway@threema.ch)
3. Add the following variables to your Axon Ivy Project: ```