How to start an Alfresco Workflow through HTML forms - html

I need to start an Activity workflow from an external HTML form (outside activiti). I do not want to use the form that Activiti provides.
I am using Alfresco Activiti BPM Suite v1.4.0. Any pointers ?

If you are running activiti in Alfresco, you can implement a webscript that will receive the post of your form and will start the task.
If you are running a standalone Activiti, you can use the activiti REST api.
I do not have code to share but the documentation should be enough to get started.
You can find a good example at: Rest API
This makes use of Spring Boot. In practice, you can develop your REST API that starts the process and then you can call the service directly from the browser using Ajax, or post to your application and execute the REST call from there.
To be honest, I have never done it, but it seems a possible solution.

Related

how to do Event-Arc configuration through code?

I am trying to configure event arc using node.js code. any idea on how Event-Arc configuration can be done with node.js.
Because there is a lot of lacking information in your question I will have to do some assumptions.
If you want to set up Eventarc, there is a client library for NodeJS available here.
Depending on your use case you either want to read about
Triggers that are listening for Google source (docs)
Third party integrations (docs)
Custom events integration via Firebase (docs)

Marketo integrate to custom app

I want to integrate marketo with my web app. In such way that the marketo leads or data automatically sync to app at regular interval.
My web application is in php.
I am new to marketo, Please help.
Only way this is done is by connecting to Marketo Via the Marketo REST or SOAP API, documentation to get you started can be found here:
http://developers.marketo.com/getting-started/
There are several integration platforms available today that let you connect various web apps and automate tasks through a simple interface. These cloud integration platforms use API of the web applications in the backend. All you need to do is connect the apps together and configure the settings. You can connect your own app or on-prem system to web services like Marketo, Salesforce, etc.
Here's a short blog post that shows how apps can be integrated.
https://www.built.io/blog/favorite-services-coupled-together
Let me know if this was helpful.
If you are just wanting to sync data back and forth a webhook might do it for you. That is what I currently use to sync data from Marketo to a PHP app and back to Marketo. Lots of addons to Marketo actually work this way.
Webhooks are also a lot easier/quicker to set up on the Marketo end and then on the PHP side you basically just have to handle the POST.
Marketo Webhook Docs: http://developers.marketo.com/webhooks/

Azureml Web Service - How to create a Rest Service from an Experiment to be consumed by a mobile app?

I've looked all over the google and stackoverflow for the answer but I cant seem to find it. I'm trying to get the output from an azure experiment to an app. I've made the app using ibuildapp and google forms. How can I use the inputs from the google form, pass it to azure and get an output to display on the app?
In order to access your model from your app you want to create a rest service. See here.
http://azure.microsoft.com/en-us/documentation/articles/machine-learning-publish-a-machine-learning-web-service/
Then you will consume this rest serivce from your app using a standard http client. Sample code is available here.
http://azure.microsoft.com/en-us/documentation/articles/machine-learning-consume-web-services/

Integrating a Web Application with BOX.NET using Content API

I am in the process of conducting a POC for integrating one of our Corporate Applications with BOX.NET.
The Corporate application resides over Amazon Cloud and I would like to use that App to perform CRUD operations on BOX.
Can I go ahead and start using the Content API (REST) provided by BOX.NET? On the BOX side I would have to go and register my application to obtain a API KEY. Please confirm if my understanding is correct.
Thanks
That's correct. To start using the Box.com API you should go to http://developers.box.com and get an API key for your application. Depending on the language you like to code in, there are SDKs you can use, or you can code directly against the REST Content API.
The Box APIs are free to build against. Users that login to your application will have to go through an OAuth2 flow to allow your application to access their Box content.

Chrome Extension: log in in options page

i'm trying to make a chrome extension and I need the have an options page where the user is able to login. this way the extension knows who he is and can retrieve specific data from a server.
I'm not sure how to do this. Any one has a tutorial page or, better yet, a sample code?
thank you all!
A number of extensions use OAuth or OpenID for authentication. There is a tutorial for OAuth on code.google.com. You could also just use a username/password and make a XHR request to validate them. It really depends on the site and what authentication methods it offers.
You need an authentication engine... In other words you need to have a backend for your chrome extension which handles logging in and logging out. This is extremely easy to do. You can use a backend as a service if it's a small project (look at Parse or Firebase) or write your own backend using a framework like Ruby on Rails.
http://rubyonrails.org/; https://www.parse.com/; https://www.firebase.com/
Options pages are well documented on the official docs, including sample code.