WSO2 Modify running processes - business-process-management

Is there a way to alter processes/components in WSO2 at runtime (in-flight)?
thanks.

Did you mean hot update of artifacts or updating WSO2 components?

I believe you are referring to altering java processes on fly. Unfortunately there is no such a way to achieve this.
If you can post ypur exact use case we might able to provide you a more fair feed back.
Thank You,
Dharshana.

Related

Suggestions and information about SQL And Swift

I am working on a new app, until now i used firebase as database but this app will save much complex data and i think that firebase and noSQL at all is not the right solution in here.
I ran into this Pod: https://github.com/IBM-Swift/Swift-Kuery that helps to use PostgreSQL on swift.
I also ran into ElephantSQL that helps you to load PostgreSQL on an AWS server (if i got it right), but i found it pretty hard to understand everything about it and I'm not sure that this is the best solution for me.
I would love to get some help from somebody that know more on SQL and SWIFT and could help me to choose right services to use it.
Thank you very much.
My suggestion to you is to avoid doing the SQL right from the mobile App unless this is extremely needed (till now I haven't found a reason to do it).
It's a better design to expose your data from your backend server (AWS, Azure, Hosted, etc) with a Webservice/API. For this you can use any backend language. Depending on your needs you could use vapor which is a web framework based on swift so that you wouldn't have to learn another language.

Grails handling FTP dump

I have a site where users are uploading files with a form and it posts and its great, but one customer insists on using FTP instead. I have determined three options for handling this, and I was wondering if anyone has any insight on which is best (or if there is a different overflow I should be asking this on), or if there is a fourth better option.
Solution 1: Learn Linux. I could probably write a cron job that looks in the directory to which they're uploading every 5 minutes and then post the files it finds into my site.
Solution 2: Create a timer driven service in grails that looks in the directory every 5 minutes. This is what I'm going to start trying.
Solution 3: This would be hard, but I'm sure it would be possible to have grails pretend to be a FTP server allowing the ftp dump to be like a post. I have no idea where to start this solution, so unless there is a plugin this isn't happening.
You can use the Grails Quartz plug-in to schedule a task, if you want to pursue option two in your list.
I would go for option 2 and use the Quartz plugin as suggested (rather than cron). Handling files in Groovy are simple and you have lots of examples such as this from mrhaki.
If you think the processing of files will have more complex requirements you could try out something like Apache Camel with this example from the same mrhaki. Though I believe Spring has its own framework that may be a better fit, you'll have to investigate that yourself if you go down that road.
Grails is a web framework so options 2 and 3 are less than ideal. If having the file that is ftped immediately available in your application option 1 is the quickest and simplest solution of the 3 I think.
Another option is to find an open source FTP server (there are several) and modify it to import the document into your system directly. This will allow your client to use the protocol they prefer (FTP) and still get the file into your application in real time.
Still another option is to provide an FTP like client that will use your grails application as the server. Whether this is suitable or not depends on why the client insists on using FTP which you should determine up front to make sure your solution works for them.

Rails support gem/engine

I need to add a customer support function to an existing Rails 3 app. I want to enable the users to submit a support ticket and answer back and fourth until the issue is resolved. I am currently using Zendesk.
Does anyone have any knowledge of something I can use? Or should I just develop it myself?
Regards,
Jacob
So you essentially want to be able to create a system to manage issues? Checkout Redmine. It has the ability to manage issues. However, I'm pretty sure that the way it looks isn't the way you want yours to look.
You can lift the generic code from Redmine and apply it to your app. I doubt you'll find a gem that does all the magic for you the way you want it to look and act, so you'll need to do programming.
I haven't tried this. I saw it listed on Open Source Help Desk List where both Redmine and Big Help are mentioned. I am also looking for a help desk gem and stumbled upon your question here.
Big Help: A help desk portal built with Ruby on Rails

Good back-office solution in Rails

is there a ready solution (gem, plugin...) to quickly have a back-office for a mostly static website?
It should be a bit more user-friendly than admin-data.
Thanks,
Augusto
You could try, in order of rising backend complexity (but also increasing frontend userfriendliness):
https://github.com/thoughtbot/high_voltage
https://github.com/mojombo/jekyll/
http://refinerycms.com/
http://www.locomotivecms.com/
If by "back-office", you mean a Content Management type of system, then I've heard very good things about Radiant.
Typus always worked for me:
Typus
You might want to check out Forest Admin. They will allow you get an up and running back-office in minutes. They have all the standard features you need so you will be able to easily perform CRUD actions for your data models.

Is there a Ruby on Rails site thumbnail generator available?

I'm hoping to avoid building this if it already exists. Does anyone know of a plugin for Ruby on Rails that will generate a screenshot of a web site? Thanks in advance to anyone who can help me find one.
As far as I am aware you need a server with a desktop (eg. Gnome, X11, KDE) and a web browser with thumbnail capabilities installed (eg. webkit and CutyCapt). Of course this is not usual for a Linux server.
I have used the service suggested by Soufiane using code based on Peter Coopers snippet and it works very well.
Generating website thumbnails would require significant server resources and some sort of background process and job queue so using a web thumbnail generation service might be a better alternative to generating your own.
Yes there is a wonderful solution:
http://webthumb.bluga.net/
It has an great API and there are some Ruby Wrappers (i.e. http://github.com/simplificator/rwebthumb)
It allows you to process 100 thumbnails a month, if you need more the price for credits is very generous if you ask me.
This is not a plugin, but I found this snippet which is using an external site to do what you want (I think.). I didn't test it though.
This is getting a little dated now, but just for posterity's sake there is an answer over here

Resources