aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/appinfo
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-07-26 11:16:34 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-07-26 11:16:34 +0200
commit2f42a3fc319f4cffcae6db6b0874786f26fa4817 (patch)
tree080256d466720ae21b0ca1a0804ff15c9b6f3fea /apps/workflowengine/appinfo
parentcc5ddcf537d03c3f2f4cdc6817e02e098f8e8edb (diff)
downloadnextcloud-server-2f42a3fc319f4cffcae6db6b0874786f26fa4817.tar.gz
nextcloud-server-2f42a3fc319f4cffcae6db6b0874786f26fa4817.zip
Add workflowengine
Diffstat (limited to 'apps/workflowengine/appinfo')
-rw-r--r--apps/workflowengine/appinfo/app.php23
-rw-r--r--apps/workflowengine/appinfo/database.xml90
-rw-r--r--apps/workflowengine/appinfo/info.xml23
-rw-r--r--apps/workflowengine/appinfo/routes.php30
4 files changed, 166 insertions, 0 deletions
diff --git a/apps/workflowengine/appinfo/app.php b/apps/workflowengine/appinfo/app.php
new file mode 100644
index 00000000000..f6f22ce9488
--- /dev/null
+++ b/apps/workflowengine/appinfo/app.php
@@ -0,0 +1,23 @@
+<?php
+/**
+ * @copyright Copyright (c) 2016 Morris Jobke <hey@morrisjobke.de>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+$application = new \OCA\WorkflowEngine\AppInfo\Application();
+$application->registerHooksAndListeners();
diff --git a/apps/workflowengine/appinfo/database.xml b/apps/workflowengine/appinfo/database.xml
new file mode 100644
index 00000000000..b67a41faed2
--- /dev/null
+++ b/apps/workflowengine/appinfo/database.xml
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<database>
+ <name>*dbname*</name>
+ <create>true</create>
+ <overwrite>false</overwrite>
+ <charset>utf8</charset>
+
+ <table>
+ <name>*dbprefix*flow_checks</name>
+ <declaration>
+ <field>
+ <name>id</name>
+ <type>integer</type>
+ <default>0</default>
+ <notnull>true</notnull>
+ <autoincrement>1</autoincrement>
+ <length>4</length>
+ </field>
+
+ <field>
+ <name>class</name>
+ <type>text</type>
+ <notnull>true</notnull>
+ <length>256</length>
+ </field>
+ <field>
+ <name>operator</name>
+ <type>text</type>
+ <notnull>true</notnull>
+ <length>16</length>
+ </field>
+ <field>
+ <name>value</name>
+ <type>clob</type>
+ <notnull>false</notnull>
+ </field>
+ <field>
+ <name>hash</name>
+ <type>text</type>
+ <notnull>true</notnull>
+ <length>32</length>
+ </field>
+
+ <index>
+ <name>flow_unique_hash</name>
+ <unique>true</unique>
+ <field>
+ <name>hash</name>
+ </field>
+ </index>
+ </declaration>
+ </table>
+
+ <table>
+ <name>*dbprefix*flow_operations</name>
+ <declaration>
+ <field>
+ <name>id</name>
+ <type>integer</type>
+ <default>0</default>
+ <notnull>true</notnull>
+ <autoincrement>1</autoincrement>
+ <length>4</length>
+ </field>
+
+ <field>
+ <name>class</name>
+ <type>text</type>
+ <notnull>true</notnull>
+ <length>256</length>
+ </field>
+ <field>
+ <name>name</name>
+ <type>text</type>
+ <notnull>true</notnull>
+ <length>256</length>
+ </field>
+ <field>
+ <name>checks</name>
+ <type>clob</type>
+ <notnull>false</notnull>
+ </field>
+ <field>
+ <name>operation</name>
+ <type>clob</type>
+ <notnull>false</notnull>
+ </field>
+ </declaration>
+ </table>
+</database>
diff --git a/apps/workflowengine/appinfo/info.xml b/apps/workflowengine/appinfo/info.xml
new file mode 100644
index 00000000000..066589c6618
--- /dev/null
+++ b/apps/workflowengine/appinfo/info.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<info>
+ <id>workflowengine</id>
+ <name>Files Workflow Engine</name>
+ <description></description>
+ <licence>AGPL</licence>
+ <author>Morris Jobke</author>
+ <version>1.0.0</version>
+ <namespace>WorkflowEngine</namespace>
+
+ <category>other</category>
+ <website>https://github.com/nextcloud/server</website>
+ <bugs>https://github.com/nextcloud/server/issues</bugs>
+ <repository type="git">https://github.com/nextcloud/server.git</repository>
+
+ <types>
+ <filesystem/>
+ </types>
+
+ <dependencies>
+ <owncloud min-version="9.2" max-version="9.2" />
+ </dependencies>
+</info>
diff --git a/apps/workflowengine/appinfo/routes.php b/apps/workflowengine/appinfo/routes.php
new file mode 100644
index 00000000000..69478b1715c
--- /dev/null
+++ b/apps/workflowengine/appinfo/routes.php
@@ -0,0 +1,30 @@
+<?php
+/**
+ * @copyright Copyright (c) 2016 Morris Jobke <hey@morrisjobke.de>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+return [
+ 'routes' => [
+ ['name' => 'flowOperations#getChecks', 'url' => '/checks', 'verb' => 'GET'], // TODO rm and do via js?
+ ['name' => 'flowOperations#getOperations', 'url' => '/operations', 'verb' => 'GET'],
+ ['name' => 'flowOperations#addOperation', 'url' => '/operations', 'verb' => 'POST'],
+ ['name' => 'flowOperations#updateOperation', 'url' => '/operations/{id}', 'verb' => 'PUT'],
+ ['name' => 'flowOperations#deleteOperation', 'url' => '/operations/{id}', 'verb' => 'DELETE'],
+ ]
+];