Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
CREATE TABLE IF NOT EXISTS `app_fd_demo` ( `id` varchar(255) NOT NULL, `dateCreated` datetime DEFAULT NULL, `dateModified` datetime DEFAULT NULL, `c_message` longtext, PRIMARY KEY (`id`) )
In this procedure, it will insert a new record into app_fd_demo every time it is called.
DELIMITER // CREATE PROCEDURE jogetaddrecord(IN inputParam VARCHAR(255)) BEGIN INSERT INTO app_fd_demo VALUES (now(), now(), now(), inputParam); END // DELIMITER ;
In Joget Workflow, from a Process, map a Tool to plugins such as SQL Query.
Add the following code in to call the stored procedure.
call jogetaddrecord("hello");
mysql> select * from app_fd_demo; +---------------------+---------------------+---------------------+-----------+ | id | dateCreated | dateModified | c_message | +---------------------+---------------------+---------------------+-----------+ | 2016-06-29 11:57:19 | 2016-06-29 11:57:19 | 2016-06-29 11:57:19 | hello | +---------------------+---------------------+---------------------+-----------+ 1 row in set (0.00 sec)