Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Risk Exposure.js Package Explorer Structure

This is regarding the Risk Exposure example given on https://jazz.net/wiki/bin/view/Main/AttributeValueProviders#Examples link. In Package Explorer, How do we define the structure of javascript class(ExposureProvider.js). Do we need to create java project and then create a javascript file in it to write the dojo scripts. What is the com.example.common package in ExposureProvider.js? Is it a package we need to create? Please help me understanding the creation of folders in package explorer for ExposureProvider.js.

0 votes



5 answers

Permanent link
I believe when you say Configuration provider should be same it means
the 'script class' name defined in Process Configuration Source
should match to what has been defined in dojo.provide() in Risk
Exposure.js. Please confirm.

Yes, that is right.

--
Regards,
Patrick
Jazz Work Item Team

0 votes


Permanent link
When you say configuration Provider, what does it specifically means?

It was a typo, I just meant 'configuration'. The sentence should have read:

The only constraint is that the 'class' name as defined by
dojo.provide(...) must match the configuration:

Configuration in the process XML:
<script>

Script:
dojo.provide("com.example.common.ExposureProvider");

--
Regards,
Patrick
Jazz Work Item Team

0 votes


Permanent link
I believe when you say Configuration provider should be same it means the 'script class' name defined in Process Configuration Source should match to what has been defined in dojo.provide() in Risk Exposure.js. Please confirm.

0 votes


Permanent link
When you say configuration Provider, what does it specifically means?

0 votes


Permanent link
This is regarding the Risk Exposure example given on
https://jazz.net/wiki/bin/view/Main/AttributeValueProviders#Examples
link. In Package Explorer, How do we define the structure of
javascript class(ExposureProvider.js). Do we need to create java
project and then create a javascript file in it to write the dojo
scripts. What is the com.example.common package in
ExposureProvider.js? Is it a package we need to create? Please help
me understanding the creation of folders in package explorer for
ExposureProvider.js.

There are two ways to deploy these scripts:

1) In a plug-in using the regular provisioning mechanisms. I haven't
documented that in
https://jazz.net/wiki/bin/view/Main/AttributeValueProviders yet, but
hope to do so soon.

2) At runtime. This is the more interesting option as it solves the
provisioning problem. There aren't many constraints here. You can
basically just upload a JS file from the filesystem as described in
https://jazz.net/wiki/bin/view/Main/AttributeValueProviders (at the
bottom). The only constraint is that the 'class' name as defined by
dojo.provide(...) must match the configuration provider. E.g.:

Configuration:
<script>

Script:
dojo.provide("com.example.common.ExposureProvider");

How you organize these scripts locally is up to you. It is certainly a
good idea to organize them in a project with a package structure, and we
may have some more tooling support to sync a local project with the
process attachments in 3.0.

--
Regards,
Patrick
Jazz Work Item Team

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,930

Question asked: Jan 22 '10, 9:20 a.m.

Question was seen: 8,008 times

Last updated: Jan 22 '10, 9:20 a.m.

Confirmation Cancel Confirm