How to embed Camunda Task forms in Custom Portal - camunda

We have our own custom build web portal (built on AngualrJS,etc). We would like to have the functionality similar to Camunda's Tasklist UI. What is the recommended approach to replicate the functionality? Is it possible to embed Just tasklist UI and refer the forms using embedded: forms in process?
Regards,
Phani

In my application, I have created my own task list. I embed GSP (Groovy Server Pages) forms in my process JARs.
My application fetches these pages via the "Get Single Deployment Resource" REST API:
/deployment/{id}/resources/{resourceId}
Then the application renders the page.
Something similar could be done to serve up AngularJS pages.

First a question.
Are you referring to the task forms that ar automatically generated by the Camunda Task list based on Form Properties (called Generated Task Forms)?
If so, there is no way to easily embed just the form as the rendering is handled by the tasklist framework.
However, Camunda have a very nice Forms SDK that can be used to created Embedded Forms. Look for the heading "Integrating the Forms SDK" in the above link and you will see how to add the Camunda Forms SDK to your own HTML5 application.
This is something we cover in our standard training class.
Hope this helps.
Greg - BP3

Related

EmbersJS: Tutorial on building an application from scratch using REST API

I'm quite new to EmberJS framework to build Web Applications. I'm currently struggling to understand the right way (using Models, Controllers, View and Routes) to build a full-fledged web application using a Java (Spring, Hibernate) based REST API.
My current task is to create a simple registration page using EmberJS and pass on the information to a back end server using the REST API.
Can anyone guide me on this from scratch or show me few links that would help me learn?
This video was helpful when I was learning how to build an ember app with a rails rest api. Yehuda is on the rails core team and one of the primary creators of ember.js so I think he's a pretty good source of information.
https://www.youtube.com/watch?v=BpQj9_qEUAc

External HTML5 Task form for Camunda Tasklist

Is there an example to show case a HTML5/Angularjs based external task form to get task data and complete task?
We want to have custom task list , does camunda provide task list JavaScript library ?
Regards,
Phani
The tasklist uses the Camunda JS SDK to manage the tasks including the retrieval of task data and the completion of task forms. You can have a look at this example for standalone usage of the JS SDK and this example for additional Angular integration.
Another thing: If you do not want to implement a tasklist yourself, the Camunda tasklist provides several customization points you can use, which include custom styles and localization as well as custom scripts and plugins (beginning with version 7.3).

Structuring Django apps

I am currently working on a Django web application consisting of following parts:
API (Django-REST-Framework) Finished
Custom administration page Unfinished
For super users
For normal users
The API app which has currently been finished has all the models for the entire system hence it made most sense. Now what i'm very uncertain about is if i should build the administration page inside of the API app, or create a separate app for that purpose? I will still need to refer to an external model, and will this be painless to maintain in the future?
I am not fully certain how the app structuring should be handled in my certain use-case.
According to advises i ended up creating separate apps to keep clean structure in the code.

Django app as REST-based service

According to the documentation, an app is a module which deals a well defined operation.
Is it correct to think about an app as a REST-based service? or is it mandatory to use some framework like piston or tastypie to create a RESTful web service around an app?
Generally, no. Django app is really just a python module, with some interfaces to django internals like models, urls, admin discovery etc.
To implement REST, you still have to manage network communications via views, and this is where you either write your own code or use the help of tastypie/piston/etc.
Please do have a look at django-rest-framework, I just stepped over from tastypie to this new framework, works great!
http://django-rest-framework.org/
Especially the class based views and the browsable api! and may other advantages (e..g. to upload images)
And to answer your question:
The rest-base service is an extra entry to your webapp.
I made some api's for some projects using the django-rest-framework, most project members were surprised they got a webapp as an extra, while it was actually the other way around. You make a django app (with views models and urls) and on top off that you make the api.

HTML5 Offline storage web framework

I am looking for a web app framework which can automatically generate an HTML5 offline storage based app, so while the users become disconnected they still can view the data which normally is stored on a server
Also currently I am using Django and it would be great if there was a framework which could pull data from Django and present that as an offline app.
From the related questions suggested by stackoverflow, while writing this question, I found one interesting link mentioning that GWT has such functionality, I would like to know more about that if possible and if it can generate an HTML5 offline app
Thanks in Advance
Rather than server-side frameworks, you should be taking a look at JavaScript frameworks.
Dojo Storage will transparently select between providers such as Google Gears, Adobe AIR or plain old HTML 5 local storage. Dojo 1.5 - dojox.storage: http://dojotoolkit.org/api/1.5/dojox/storage
There's also jQuery local storage: http://plugins.jquery.com/project/saveit
... or jStorage, which can act as a storage plugin for jQuery, Prototype or MooTools: http://www.jstorage.info/
With any of these, you should be able to use a quick little AJAX call to pull (JSON perhaps) data from your server and use one of these tools to help minimise your storage code.
You're talking about a standalone app, not a django app.
This can be done with javascript (jQuery, Sproutcore, JavascriptMVC, Pyjamas ...) or Adobe AIR, or...
Pulling data from Django is just a matter of setting up a syncing method, most probably using JSON, to fill up the browser local storage. So this is not django-specific at all.
If you want a standalone django app, this can be done if you bundle in a python desktop app django with a built-in server, that's another question
You could suggest the users to create web apps or use google gears instead... I don't know if this will fill the question, but, i'm in the same way. However, I'm developing an governamental solution who will run only for some kind of people, so, I can have a few control about the user's environment... All you need to do is to use jquery to detect if user has a live connection, or offer to the users a 'preferences' page where you define the behavior of the page itself...
Some info about offline cache: http://diveintohtml5.ep.io/offline.html
PS.: In another post in stackoverflow, I 've found another question: html5 offline caching with php driven sites... The last Post said:
HTML5 offline caching does not work to make your pages interact; it works only to make a
particular page available offline. Basically, it works on a URL-by-URL basis. If you
absolutely need offline functionality, you will be forced to make it work in JS.
Also, make sure your manifest includes all resources used by all pages.
Hope this helps!
Hope it helps!!