Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Adding Specific Domain Services for Microsoft Academic #1

Closed
wants to merge 1 commit into from

2 participants

@saifulomar
Collaborator

No description provided.

@tsurdilo
Owner

After thinking about this - we will add this to the jBPM Service Repository, however adding it as one of the default installed service nodes in the tooling is probably not the best thing as users might not want it by default, but can always intall it from the service repo if they wish to do so. I will keep this pull request here for a bit, because want to add ability for the service repo to also hold the form widgets and the one in this pull request is very nice.

@saifulomar
Collaborator

No worries, the service is kinda specific to the academic domain.

@tsurdilo
Owner

this has been applied to the designer master branch already. there is no need for this pull request

@tsurdilo tsurdilo closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
14 src/main/webapp/defaults/WorkDefinitions.wid.st
@@ -1,4 +1,6 @@
import org.drools.process.core.datatype.impl.type.StringDataType;
+import org.drools.process.core.datatype.impl.type.ObjectDataType;
+
[
[
"name" : "Email",
@@ -19,5 +21,17 @@ import org.drools.process.core.datatype.impl.type.StringDataType;
],
"displayName" : "Log",
"icon" : "$protocol$://$host$/$subdomain$/rest/packages/$pkgName$/assets/defaultlogicon/binary"
+ ],
+
+ [
+ "name" : "MicrosoftAcademy",
+ "parameters" : [
+ "title" : new StringDataType()
+ ],
+ "results" : [
+ "results" : new ObjectDataType("java.util.Map")
+ ],
+ "displayName" : "Microsoft Academy",
+ "icon" : "$protocol$://$host$/$subdomain$/rest/packages/$pkgName$/assets/micadicon/binary"
]
]
View
42 src/main/webapp/defaults/formwidgets/displaysearchtitle.fw
@@ -0,0 +1,42 @@
+<html>
+<script src="/designer/lib/prototype-1.5.1.js" type="text/javascript">
+</script>
+
+<h2>Results for "${titleIn}" </h2>
+<hr>
+
+<script type="text/javascript">
+ var fTitle = '${resultsIn}'.evalJSON();
+ //var ftitle = utitle.evalJSON();unfilterJSON
+
+var x = 1;
+fTitle.d.Publication.Result.each(function(elt){
+ document.write('<p>' + x++ +': '+ elt.Title +' (citation : ' + elt.CitationCount+', year : '+ elt.Year+ ')</br>');
+ for(y=0; y<elt.Author.length; y++) {
+ if(elt.Author[y].HomepageURL){
+ document.write('<a href="'+ elt.Author[y].HomepageURL+'" target="_blank">'+ elt.Author[y].FirstName + ' ' + elt.Author[y].LastName +'</a> ');
+ }else {
+ document.write(elt.Author[y].FirstName + ' ' + elt.Author[y].LastName);
+ }
+ if(y<elt.Author.length-1){
+ document.write(', ');
+ }
+ }
+ document.write('</br>');
+ for(y=0,z=1; y<elt.FullVersionURL.length; y++) {
+ document.write('<a href="'+elt.FullVersionURL[y]+'" target="_blank"> ['+ z++ +']</a> ');
+ }
+ });
+
+</script>
+
+
+<form action="complete" method="POST" enctype="multipart/form-data">
+ <input type="submit" name="submit" value="Submit">
+</form>
+
+</html>
+
+
+
+
View
10 src/main/webapp/defaults/formwidgets/searchtitle.fw
@@ -0,0 +1,10 @@
+<html>
+<body>
+<h2>Search Publication Title</h2>
+<hr>
+<form action="complete" method="POST" enctype="multipart/form-data">
+Name : <input name="titleOut" type="text"><br>
+<input type="submit" name="submit" value="Submit">
+</form>
+</body>
+</html>
View
BIN  src/main/webapp/defaults/micadicon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Something went wrong with that request. Please try again.