Where did you place your code?
From the screen shot, it looks like you are trying to use AngularJS inside of ProcessMaker, but I don't think that will work, because AngularJS interferes with ExtJS in the ProcessMaker interface and jQuery in Dynaforms.
That example is for creating a separate web page outside of ProcessMaker. Do you have a separate web server where you can run that code?
If not, then the easiest solution is to edit your pmos.conf
file and add a virtualhost which uses another port number. (Note: edit /apps/processmaker/conf/httpd-vhosts.conf if using a Bitnami installation)
Code: Select all
DirectoryIndex index.html index.php
Options Indexes FollowSymLinks MultiViews
Require all granted
Then put your code in the directory /var/www/myapp
and you can access it from a web browser at the address:
If you want to use it inside ProcessMaker, you need to run it inside an <iframe>, so AngularJS doesn't interfere with the rest of ProcessMaker.
If you don't have a separate web server where you can test your code and don't want to create a subdomain in Apache on your existing machine just to test using REST in a separate web page, then you can place your code inside the workflow/public_html/
directory. You have to put it directly in that directory (not in a subdirectory).
Then, if you access process
The problem is that you can't use Angular in