First Steps:
- define Endpoint: *adapt to your needs*
- init: https-post://centurio.work/out/frames/
- frames: https-put://centurio.work/out/frames/
- define Data Element: (url where your frame will be reached)
- Create Init Activity
- Create a new "Service Call with Script"
- Set the Endpoint to "init"
- Set your arguments e.g. width: 10, height:10, languge: de-at and some title
- Set the Prepare Code to: "endpoints.init = File.join(endpoints.init,data.frameID)" where data.frameID is the name from the variable we created before
- Create Frame Activity
- Create a new "Service Call with Script"
- Set the Endpoint to "frames"
- Set your argument Type to "Set UI and contion" (default option)
- Set your other arguments e.g. DisplacementLeft:0, top:0, width:10, Height:10
- In Section "Form Url" click on the button "New Language"
- Define the URL that should be displayed
- Set the Prepare Code to: "endpoints.frames = File.join(endpoints.frames,data.frameID)" where data.frameID is the name from the variable we created before
- Execute your Process
- Open your frame URL (add the defined name (YourFrameName) to the url currently open in this browser Window
Ohter Steps:
- My new frame site process runs through once and then its done
- Use an endless loop within your proces engine
- Be aware that in case you do not wait for input at some point your loop will run a gazillion times per second!!!
- Ohhh nooo i forgot the process engine instance that drives my frames application
- In the case your site is not empty
- Inspect the site (ctrl+shift+c)
- Find one of your iframes
- Arguments "name" or "id" will give you the instance ID
- In the case your site is empty
- HAHA
- Nah its not that bad, look in your process engine and best thing to do is to use the design service next time
There are more Ohter Steps?
- My Frame needs to Return something to the process engine Step1
- Create a new "Service Call with Script"
- Set the Endpoint to "frames"
- Set your argument Type to "Set UI and wait for input"
- Set your other arguments e.g. DisplacementLeft:0, top:0, width:10, Height:10
- In Section "Form Url" click on the button "New Language"
- Define the URL that should be displayed
- Set the Prepare Code to: "endpoints.frames = File.join(endpoints.frames,data.frameID)" where data.frameID is the name from the variable we created before
- Set the Finalize Code to: "data.yourDataElementName = result
- How to return data from your Frame? see Step2 (below)
- My Frame needs to Return something to the process engine Step2
- You have some fancy html site that wants to send oodles of data back to centurio
- Within your frame call the javascript function parent.sendJson(window.name,yourJsonDataHere)
- All you need to change is define "yourJsonDataHere"
- I want to delete some frames
- Create a new "Service Call with Script"
- Set the Endpoint to "frames"
- Set your argument Type to "Set UI and contion" (default option)
- Set your other arguments e.g. DisplacementLeft:0, top:0, width:10, Height:10 to match the frames you would like to delete
- Set the Prepare Code to: "endpoints.frames = File.join(endpoints.frames,data.frameID)" where data.frameID is the name from the variable we created before
- Thats it
- Do i need to delete a frame in order to create one at that poisiton?
- Nope, when one frame overlaps one or multiple frames the overlapped ones will be deleted automatically
I Would like to use the Forms service:
- Will be described soon ;)
Data Handling:
- Will be described soon ;)
Other questions you could have: (note this is not other steps!)
- I want to do a circular iframe
- Why?
- You have to manage this within your html site