Creating a custom workflow that copies events in a calendar to another one
Hello,
I was looking for a
Calendar displayed in having some
items from B to A.
calendar
So, I suppose That I
can run a workflow That
Automatically copies specific events
calendar and paste it in
B.
This is the step-by step
of the procedure I executed:
First, I checked That
Both calendars have exactly
the same columns.
Then I added an yes
/ no column in A Calendar
called "Rollup".
Since I'm a new SPD in the
whole world, I Decided
to use the 2010 plattform,
beacuse in the 2013 version
I couldnt find the "Copy
Item" Action.
I developed a list workflow
attached to Calendar A That Says:
Condition: If Current List:
Rollup equals Yes
Action: Copy Item to
Current Public Calendar
For an unknown reason, This
workflow always displays an error, Therefore
Accomplished never its purpose.
Does anyone have an idea what I
am doing acerca wrong?
Or knows a better workaround
for syncing two calendars?
Thanks for the help !
Hi Corina,
For achieving your demand, you can create a SharePoint 2013 Workflow for Calendar01 as below and it works fine in my test:
Best Regards,
Eric
Eric Tao
TechNet Community Support
Similar Messages
-
How can I create a custom formula that checks if a PC file exists? (CR10)
Post Author: lgayosso
CA Forum: Formula
Hello,
I need to create a formula that validates whether a PC file exists or not to display a message ('File Found' or 'File not found'). I created a custom formula that displays the appropriate message based on a report field composed of the FilePath + FileNameWithExtension that works correctly if the field includes a value or not (Basic Syntax below):
If {ctDocumentImages.ImgPath} <> "" Then Formula = "File Found"Else Formula = "File not found"End If
Now I want to validate that the {ctDocumentImages.ImgPath} value corresponds to an existing file; that is, I need to check that the file specified at {ctDocumentImages.ImgPath} location truly exists to determine that the file is actually 'found'. How can I accomplish this?
Any help is greatly appreciated,
LucioPost Author: lgayosso
CA Forum: Formula
[email protected]:
( my file connection name was CrystalReports_Reports.File Name) I have generated a report, that shows all my rpt file names, size, last updated.... etc )
Go to database expert, create new connection, select file system data, your starting directory will be
genplex\E\JEMS51_Server\Imaging\Int\2007\..... you can then report on the file names found in that directory / subdirectory, etc... When creating the link you can select all files, or just *.rpt for example
Ok, so you define more than one connection on your report to be able to access the File System Object, right? The problem is that my reports are generic and meant for distribution for customers where no generic base folder will exist. The value of the starting directoy is then unknown, FilePath+Name then can be any value.
Lucio -
Launch Custom Workflow thru Business Event
Hi ,
My requirement is to launch a Workflow Approval process after creating a Transaction Record in Oracle Apps.
(1) Is it a good practice to invoke the custom workflow (from PLSQL) from a database trigger on the TRX table?
(2) Instead, can I define an event or use a pre-defined business event to invoke my customer WF?
(3) If so, is it sufficient while defining "Event Subscription", just set action type "Launch Workflow" and set workflow details? or do I still need to define an Receive Event Activity in my customer WF?
Thx, SureshHi,
1 - It's probably neither here nor there, to be honest. If it can be avoided, then I would always avoid launching a process from a trigger. However, you may have no other choice than to fire the workflow from a trigger - bear in mind that you will need to defer the process to the background and run a background engine later to start the process off, as the first node will issue a savepoint which is not allowed in a trigger.
2 - Yes. If you are defining a custom event, you will still need to raise the event in some manner, though. If you can hook into a seeded event, then that's the best way to do it.
3 - The workflow process needs to have a receive event node to receive the event. If you are starting the process, then this needs to be set as a Start node. You will then have to ensure that the event gets raised.
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://www.workflowfaq.com/blog ?
WorkflowFAQ support forum: http://forum.workflowfaq.com -
SharePoint Designer 2013 crashes when creating a custom workflow...
I have never had this problem with SPD2010 and the default workflow 2013 templates do not provide the features that I need so creating this workflow using the online UI is not an option.
I have uninstalled SPD2013 two times now and I have tried creating a new list and I still have the problem. It's critical for my project that we are able to create custom workflows so this is a HUGE blocker for me so any help would be appreciated.
Thanks
RickDid you ever get a response?
-
How would one Create a "Custom Cursor" that can move BEHIND certain layers?
In terms of Flash expertise I am on the the doddering divkid level -- but have mananged to create a custom cursor; a hand that I want to move about over most layers but under one specific layer. Currently, no matter the layer order, when published the cursor image jumps straight to the top.
Is there a property I can imbue in the would-be "top" layer or a way of editing or modifying the custom mouse cursor actionscript that would bring about the desired result?
Many thanks in advance for your time and expertise...........................peaceyou can easily attach the cursor between the specific layers you want using an empty movieclip and add your cursor movieclip to the emptyMC using the class name. Look at the screenshot and follow the code. it works
and here is the code:
import flash.display.MovieClip;
var whytehand:MovieClip=new cur();
emptyMC.addChild(whytehand);
emptyMC.mouseEnabled = false;
emptyMC.addEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor_5);
function fl_CustomMouseCursor_5(event:Event)
emptyMC.x = stage.mouseX;
emptyMC.y = stage.mouseY;
Mouse.hide();
Thatz it! -
Can nested IIf be created in custom workflow (in Designer)?
I need to explore building a custom workflow in Designer that will allow me to update a hidden field in the list. Is it possible for me to recreate the nested IIf statement I have written below? I'm not seeing how to do get an AND operator in
the workflow designer, nor the nested concept.
TypeOfChange: IIf([status]="active",
IIf([program type]="p", "Primaries Approved",
IIf([program type]="o", "Options Approved",
IIf([program type]="R" Or [award]="AAS-T", "AAS-T Programs Registered",
IIf([apprentice]="a", "Apprenticeships Registered",
IIf([contract]="c", "Contracts Approved",
IIf([College Report Categories]![title]="collaborations", "Collaborations Registered",
IIf([Indiv Program Students] is Not Null, “Individualized Programs”,
IIf([program type]="st","ST Programs Registered")))))))),
IIf([status]="Title changed", "Titles Changed",
IIf([status]="removed",
IIf([program type]="p", "Primaries Deleted",
IIf([program type]="o", "Options Deleted",
IIf([program type]="st", "ST Deleted"))),
IIf([status]="Inactive",
IIf([program type]="p", "Inactive Primaries",
IIf([program type]="o", "Inactive Options")),
IIf([status]="Reinstated", "Reinstated Programs",
IIf([status]="Pending", "Pending Requests",
IIf([status]="NoI Review", "NoI Review Period",
IIf([status]="Modified", "Curriculum Modifications",""))))))))
There are no mistakes; every result tells you something of value about what you are trying to accomplish.Hi run4it,
When add multiple compare conditions in workflow condition, it will show the operator AND, then you can try disigning the logic of if else branch sentenses as Andy suggested.
Thanks,
Daniel Yang
Forum Support
If you have feedback for TechNet Subscriber Support, contact
[email protected]
Daniel Yang
TechNet Community Support -
How can I create a custom step that does nothing but make calls to a dll
What I'd like to end up with is a Custom step that
1. Takes several string parameters
2. Makes several calls to functions in a DLL
3. Returns and stores error codes returned from the function
I've been through the KB article "How Do I Make a Custom Step Type".
This got me about halfway there; while helpful, it didn't provide a
reference for some of the questions I had, specifically:
1. What sort of sequence action type should I start with (to use as a template)?
2. If I start with a "Call Executable", do I need to specify the module when I incorporate the step into the sequence?
3. How does one pass parameters in and out of a custom step type?
4. How does the step type report progress/errors to the report?
Thanks in advance.
MikeHi,
To interface to a DLL you will need to use either the DLL Adapter or the CVI Adapter, not the Call Executable adapter.
Have you been through the Using LabWindowsCVI with TestStand manual. This should answer all your questions, all the chapters are relevant.
Regards
Ray Farmer
Regards
Ray Farmer -
I created a custom ringtone that shows up as a ringtone but isn't on phone!
I created a custom ringtone, 22 seconds. All went well - it appears as a ringtone in my itunes music, and in itunes, under my phone (3g), as a ringtone. After several attempts at syncing (have never had a problem syncying anything), it does not appear under settings, general, sounds, ringtones. Can anyone help?
I think i've found the answer
In "music" my ringtones had also been added but with a "!" next to the ringtone. When you click on this the message reads something like "cant find location"
If you delete all the ringtones in "music" (the ringtones in "ringtones" don't get deleted") then sycn the phone then all my ringtones transfered to my Iphone
Yay -
How do you change the Color Red, that shows up on various points of the Calendar to another color? Persons with certain eye problems have visual irritations that can be caused by the color Red. This problem came up with the update to IOS 7.0.
Sorry but you cant
-
Any guidance would be greatly appreciated. I am financially impaired (nice way of saying "poor"), and cannot afford to purchase any more upgrades for my system or another version of InDesign.
I am sure there must be settings that will allow me to install the program, possibly with limited functionality due to this issue. I am disabled and cannot work outside of my home. I was hoping to make a small income freelancing with this package, and InDesign is a crucial part of the package.
Thank you very much for any assistance.
Kara Bismarck
<email removed-kglad>So I would have to uninstall Windows 7 Home Premium and reinstall it as 64-bit? I'm trying to do this without having to reformat my computer. Is there a way I could create a 64-bit partition on my secondary hard drive without reinstalling the OS?
-
Creating a custom task that pulls an SCCM report
I currently have a custom task in SCSM that uses the web address of an existing ECCM report to list all computers with username. I want to make another task taht will allow the tech to enter the computer name and get the list of installed software from
SCCM. Using the iexplore.exe and the parameter address of the report doesn't allow them to enter the computer name, or to change it. That prompt normally comes up in SCCM before it opens the browser window, so I am not sure how to put that in as a parameter.Are you using the executable exe file and the filename as a parameter in the custom task?
Andreas Baumgarten | H&D International Group -
How to create a custom pattern that tiles without borders
I know that I can save a pattern as a swatch and use it as fill, but how to create a shape that tiles without borders?
My pattern now has closed paths on its edges which show up in the tiling. I don't know how to create it with open paths.
Thanks for your help!rahneo,
As I (mis)undersatnd it, you may Direct Select and delete the unwanted path segments.
Deselect first before (each time) you do it.
Otherwise, you may create a nofill/nostroke rectangle covering the exact part you wisg to have in the tile and bring it to the bottom of the stack of objects that forms the tile. -
How to attach event to custome workflow object ?
Hi Guys,
Could someone help me on how to raise event while creating custom workflow object.We can attach event to object in transaction swe2 . I would like to know how to create that event. Could some send sample custom workflow object with events.
Many thanks in advance.
Cheers,
Garrick.Here's an example using Business object BUS2080 Service notification
I delegated ZBUS2080 to BUS2080 (service notification). Added 2 Events REASSIGNED and MODIFIED.
Use transaction SWO1 for manipulating business objects.
The User performs an action on a service notification (IW52) say PUT IN SERVICE AGAIN.
When the user puts the service notification in service again the event triggered will start a (user defined) workflow which makes a call to a method in the business object ZBUS2080 which launches a batch job.
This batch job creates our user event REASSIGNED which in turn calls a new workflow to be executed.
This workflow performs the action I want -- in this case to re-assign the service notification to a new person, send an email and escalate the deadlines
Code samples are shown below.
So here's how it works.
First you need to set up some entries with table SWE2. I've assumed you've already defined the events to the Business object(s) you want to use.
In SWE2 define entries for BUS2080 (or ZBUS2080) For Events INPROCESSAGAIN and (our event) REASSIGNED.
IN SWE2 define the receiver call as a FUNCTION MODULE
For the receiver function modules for the SAP event (INPROCESSAGAIN) define the receiver module as SWW_WI_CREATE_VIA_EVENT
For the event REASSIGNED define the receiver module as SWW_WI_CREATE_VIA_EVENT_IBF.
I have no idea whatwhat the difference is between the two but the process works when it's done like this.
Ensure the linkage Activated box is clicked in both cases.
Put your workflow numbers in the RECEIVER TYPE in SWE2 table.
In the first workflow when the user puts the service notification in service ensure your workflow starts a batch job which raises another event
Note : You need to instantiate the object (I.e supply the key) to trigger the event correctly. The key is obtained from the WF and will be in the container anyway.
You can do this by adding this type of function module into the method of the business object you want to execute during the first workflow. The code here creates a batch job which submits the EVENT creating program.
function z_create_event_for_cs.
""Local interface:
*" IMPORTING
*" REFERENCE(OBJECT_KEY) LIKE SWOTOBJID-OBJKEY
*" REFERENCE(W_REASON) LIKE HRPXXXX-DUMMY
*" REFERENCE(W_ESCLEVEL) LIKE HRPXXXX-DUMMY
Create Batch job to run ZZREASSIGNCS
which creates event REASSIGNED in Customer query workflow.
data: jobnr like tbtcjob-jobcount,
jobname like tbtcjob-jobname,
pgmname like sy-repid,
w_key like viqmel-qmnum,
w_code type c,
w_num type c.
w_num = w_esclevel.
jobname = 'CREATEEVENT'.
pgmname = 'ZZREASSIGNCS'.
call function 'JOB_OPEN'
exporting
jobname = jobname
importing
jobcount = jobnr
CHANGING
RET =
exceptions
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
others = 4
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = object_key
importing
output = w_key.
w_code = w_reason.
if w_code = ' '.
w_code = 'Z'.
endif.
submit zzreassigncs
with p_key = w_key
with p_escl = w_code
with p_escnum = w_num
via job jobname number jobnr
and return.
call function 'JOB_CLOSE'
exporting
jobcount = jobnr
jobname = jobname
strtimmed = 'X'
exceptions
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
invalid_target = 8
others = 9
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endfunction.
For the actual program which creates the event use something like this
program zzreassigncs.
This program creates an event REASSIGN
This triggers a "clone" of the initial customer query workflow
which is now marked as completed.
The deadline and escalation level from the original workflow
should be passed to the new workflow via the event container
Program is submitted from the original workflow
Ensure transaction SWE2 has the event REASSIGN for bus object BUS2080
defined or the WF won't start even if the event is raised correctly
As this program is run as a background / batch task
you need to obtain the relevant notification number and pass it
as a parameter.
When run from the WF the you can get the notification number obtained
from the workflow / task container.
include <cntn01>. "For WF macros.
parameters: p_key like swotobjid-objkey, "Service notification number
p_escl type c,
p_escnum type c.
constants: c_event like swetypecou-event value 'REASSIGNED',
c_attrib like swotra-attribute value 'USRSTATUS',
c_object like swetypecou-objtype value 'BUS2080'.
data: w_object like swotobjid,
w_stat like tj30t-txt04.
data: rc like sy-subrc.
data: begin of event_cont occurs 0.
include structure swr_cont.
data: end of event_cont.
data: begin of return.
include structure swotreturn.
data end of return.
if running from WF rather than a batch job
swc_container container.
swc_get_element container 'Znumber' p_key.
w_object-objkey = p_key.
w_object-objtype = 'BUS2080'.
call function 'SWO_PROPERTY_GET'
exporting
object = w_object
attribute = c_attrib
changing
value = return.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
w_stat = return(4).
event_cont-element = 'Status'.
event_cont-value = w_stat.
append event_cont.
event_cont-element = 'Escalated'.
event_cont-value = p_escl.
append event_cont.
event_cont-element = 'Escalation'.
event_cont-value = p_escnum.
append event_cont.
Note WAPI calls only valid from rel 6.1 using Webflow engine
(part of standard WF since rel 6.1)
CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
EXPORTING
OBJECT_TYPE = w_object-objtype
OBJECT_KEY = w_object-objkey
EVENT = 'REASSIGNED'
IMPORTING
RETURN_CODE = rc
EVENT_ID =
TABLES
INPUT_CONTAINER = event_cont.
if rc <> 0. "Houston ---We have a problem !! '
write: text-002 color col_negative.
exit.
endif.
even though no database / table is updated here by the event
we still need the commit work to initiate the event correctly
commit work.
You CAN use Objects (OO ABAP) but if you are fairly new to this sort of stuff just stick with standard BOR (Business objects) to parctice on until you've got the hang of the process.
It's actually a lot simpler than most people realize --which is why WF consultants get paid decently !!!!.
Cheers
Jimbo -
What is the recommended way to handle mouse click events for custom nodes that subclass Panes?
Hi,
I have created a custom node that is a StackPane containing a Label on top of a Polygon.
import javafx.scene.control.Label;
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Polygon;
public class CustomHexagon extends StackPane {
private Polygon hexagon;
private Label overlayText;
public CustomHexagon( String text, double... points ) {
this.hexagon = new Polygon( points );
this.overlayText = new Label( text );
overlayText.setStyle( "-fx-font-weight: bold;" );
hexagon.setStroke( Color.GREEN );
hexagon.setStrokeWidth( 5.0 );
hexagon.setFill( Color.WHITE );
this.getChildren().addAll( hexagon, overlayText );
// Lays out the node where it should be according to the points provided for the Polygon.
this.setLayoutX( points[0] - getLayoutBounds().getMinX() );
this.setLayoutY( points[1] - getLayoutBounds().getMinY() );
// Show the border of the StackPane.
this.setStyle( "-fx-border-color: black; -fx-border-width: 1; -fx-border-style: dashed;");
public String getOverlayText() {
return overlayText.getText();
I want to display a tesselation of these custom hexagons. Because a CustomHexagon is a StackPane, not a Polygon, MouseClick events can be picked up when the mouse is clicked outside of the stroke of the hexagon but still within the StackPane (which takes up a rectangle larger than the hexagon). The following program demonstrates this.
public class Main extends Application {
@Override
public void start(Stage primaryStage) {
Group root = new Group();
CustomHexagon[] hexagons = {
new CustomHexagon( "00", 10.0, 10.0, 30.0, 10.0, 40.0, 27.3205080756, 30.0, 44.6410161512, 10.0, 44.6410161512, 0.0, 27.3205080756 ),
new CustomHexagon( "01", 70.0, 10.0, 90.0, 10.0, 100.0, 27.3205080756, 90.0, 44.6410161512, 70.0, 44.6410161512, 60.0, 27.3205080756 ),
new CustomHexagon( "02", 130.0, 10.0, 150.0, 10.0, 160.0, 27.3205080756, 150.0, 44.6410161512, 130.0, 44.6410161512, 120.0, 27.3205080756 ),
new CustomHexagon( "03", 190.0, 10.0, 210.0, 10.0, 220.0, 27.3205080756, 210.0, 44.6410161512, 190.0, 44.6410161512, 180.0, 27.3205080756 ),
new CustomHexagon( "04", 250.0, 10.0, 270.0, 10.0, 280.0, 27.3205080756, 270.0, 44.6410161512, 250.0, 44.6410161512, 240.0, 27.3205080756 ),
new CustomHexagon( "10", 40.0, 27.3205080756, 60.0, 27.3205080756, 70.0, 44.6410161512, 60.0, 61.961524226799995, 40.0, 61.961524226799995, 30.0, 44.6410161512 ),
new CustomHexagon( "11", 100.0, 27.3205080756, 120.0, 27.3205080756, 130.0, 44.6410161512, 120.0, 61.961524226799995, 100.0, 61.961524226799995, 90.0, 44.6410161512 ),
new CustomHexagon( "12", 160.0, 27.3205080756, 180.0, 27.3205080756, 190.0, 44.6410161512, 180.0, 61.961524226799995, 160.0, 61.961524226799995, 150.0, 44.6410161512 ),
new CustomHexagon( "13", 220.0, 27.3205080756, 240.0, 27.3205080756, 250.0, 44.6410161512, 240.0, 61.961524226799995, 220.0, 61.961524226799995, 210.0, 44.6410161512 ),
new CustomHexagon( "14", 280.0, 27.3205080756, 300.0, 27.3205080756, 310.0, 44.6410161512, 300.0, 61.961524226799995, 280.0, 61.961524226799995, 270.0, 44.6410161512 ),
new CustomHexagon( "20", 10.0, 44.6410161512, 30.0, 44.6410161512, 40.0, 61.961524226799995, 30.0, 79.2820323024, 10.0, 79.2820323024, 0.0, 61.961524226799995 ),
new CustomHexagon( "21", 70.0, 44.6410161512, 90.0, 44.6410161512, 100.0, 61.961524226799995, 90.0, 79.2820323024, 70.0, 79.2820323024, 60.0, 61.961524226799995 ),
new CustomHexagon( "22", 130.0, 44.6410161512, 150.0, 44.6410161512, 160.0, 61.961524226799995, 150.0, 79.2820323024, 130.0, 79.2820323024, 120.0, 61.961524226799995 ),
new CustomHexagon( "23", 190.0, 44.6410161512, 210.0, 44.6410161512, 220.0, 61.961524226799995, 210.0, 79.2820323024, 190.0, 79.2820323024, 180.0, 61.961524226799995 ),
new CustomHexagon( "24", 250.0, 44.6410161512, 270.0, 44.6410161512, 280.0, 61.961524226799995, 270.0, 79.2820323024, 250.0, 79.2820323024, 240.0, 61.961524226799995 ),
new CustomHexagon( "30", 40.0, 61.961524226799995, 60.0, 61.961524226799995, 70.0, 79.2820323024, 60.0, 96.602540378, 40.0, 96.602540378, 30.0, 79.2820323024 ),
new CustomHexagon( "31", 100.0, 61.961524226799995, 120.0, 61.961524226799995, 130.0, 79.2820323024, 120.0, 96.602540378, 100.0, 96.602540378, 90.0, 79.2820323024 ),
new CustomHexagon( "32", 160.0, 61.961524226799995, 180.0, 61.961524226799995, 190.0, 79.2820323024, 180.0, 96.602540378, 160.0, 96.602540378, 150.0, 79.2820323024 ),
new CustomHexagon( "33", 220.0, 61.961524226799995, 240.0, 61.961524226799995, 250.0, 79.2820323024, 240.0, 96.602540378, 220.0, 96.602540378, 210.0, 79.2820323024 ),
new CustomHexagon( "34", 280.0, 61.961524226799995, 300.0, 61.961524226799995, 310.0, 79.2820323024, 300.0, 96.602540378, 280.0, 96.602540378, 270.0, 79.2820323024 ),
new CustomHexagon( "40", 10.0, 79.2820323024, 30.0, 79.2820323024, 40.0, 96.602540378, 30.0, 113.9230484536, 10.0, 113.9230484536, 0.0, 96.602540378 ),
new CustomHexagon( "41", 70.0, 79.2820323024, 90.0, 79.2820323024, 100.0, 96.602540378, 90.0, 113.9230484536, 70.0, 113.9230484536, 60.0, 96.602540378 ),
new CustomHexagon( "42", 130.0, 79.2820323024, 150.0, 79.2820323024, 160.0, 96.602540378, 150.0, 113.9230484536, 130.0, 113.9230484536, 120.0, 96.602540378 ),
new CustomHexagon( "43", 190.0, 79.2820323024, 210.0, 79.2820323024, 220.0, 96.602540378, 210.0, 113.9230484536, 190.0, 113.9230484536, 180.0, 96.602540378 ),
new CustomHexagon( "44", 250.0, 79.2820323024, 270.0, 79.2820323024, 280.0, 96.602540378, 270.0, 113.9230484536, 250.0, 113.9230484536, 240.0, 96.602540378 )
EventHandler<MouseEvent> mouseClickedHandler = new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent t) {
CustomHexagon h = (CustomHexagon) t.getSource();
System.out.println( h.getOverlayText() );
for ( CustomHexagon hexagon : hexagons ) {
hexagon.setOnMouseClicked( mouseClickedHandler );
root.getChildren().addAll( hexagons );
Scene scene = new Scene(root, 400, 400);
primaryStage.setTitle("Example");
primaryStage.setScene(scene);
primaryStage.show();
public static void main(String[] args) {
launch(args);
After running this program, when one clicks within the intersection of two StackPanes (borders shown by dashed lines), the target of the mouse click event will be the StackPane on top as determined by the order in which they were added to their parent.
This is a problem because there is only a small "T" shaped area within each hexagon that when clicked will target that hexagon with an event, rather than adjacent nodes.
I would appreciate any reccomendations to solve this problem.
Thanks,
James GillerHello, this is an evergreen. Just call setPickOnBounds(false) on the CustomHexagon.
An issue tracking this problem is open here: https://javafx-jira.kenai.com/browse/RT-17024 -
Workflow created with Authoring tool produces a workflow that doesn't work
Hi,
I'm getting fed-up with the Authoring Tool. It has such inconsistently bad results.
Anyway, here's my current problem:
1. Create a new MP
2. Create a new Workflow that triggers when an incident is created with no additional criteria
3. Add a command script to the workflow that runs an exe based on the workflow server
4. Add two parameters, one of /commit the other of the Id of the incident
5. Import the MP, copy the resultant assembly DLL to the workflow server
6. Trigger the workflow, it fails with:
Microsoft.EnterpriseManagement.Common.InconsistentDataException: The requested objects had an unknown management pack. ---> Microsoft.EnterpriseManagement.Common.InconsistentDataException: The call produced inconsistent results. The data on the client
does not match the data returned from the server. The most likely cause is that client-side cache is out of sync with server data. ---> Microsoft.EnterpriseManagement.Common.ObjectNotFoundException: An object of class ManagementPack with ID ab2e712a-8963-028c-50bb-8d2fbecf380a
was not found.
at Microsoft.EnterpriseManagement.Configuration.TypeSpaceCacheBaseWithManagementPacks.GetManagementPack(Guid id)
at Microsoft.EnterpriseManagement.ManagementPackManagement.GetManagementPack(Guid id)
at Microsoft.EnterpriseManagement.Configuration.CreatableManagementPackElement`1.GetManagementPack(Guid managementPackId)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at Microsoft.EnterpriseManagement.Configuration.CreatableManagementPackElement`1.GetManagementPack(Guid managementPackId)
at Microsoft.EnterpriseManagement.Configuration.ManagementPackTask.Constructor.CreateSingle(Result row)
at Microsoft.EnterpriseManagement.Configuration.ManagementPackElementConstructor.CreateMultiple[T,H](IList`1 dataAccessResult, EnterpriseManagementGroup managementGroup, ManagementPack managementPack)
at Microsoft.EnterpriseManagement.TaskConfigurationManagement.GetTasksInternal(ManagementPackTaskCriteria criteria, IList`1 targetTypeIds, BaseClassTraversalDepth baseClassTraversalDepth, Nullable`1 managedEntityId)
at Microsoft.EnterpriseManagement.TaskConfigurationManagement.GetTasksInternal(ManagementPackTaskCriteria criteria, IList`1 targetTypeIds, BaseClassTraversalDepth baseClassTraversalDepth)
at Microsoft.EnterpriseManagement.TaskConfigurationManagement.GetTasksInternal(ManagementPackTaskCriteria criteria)
at Microsoft.EnterpriseManagement.TaskConfigurationManagement.GetTasks(ManagementPackTaskCriteria criteria)
at Microsoft.ServiceManager.WorkflowAuthoring.Common.ManagementGroupHelper.GetTaskGuid(String taskName, String mgmtGroupName)
at Microsoft.ServiceManager.WorkflowAuthoring.ActivityLibrary.CommandScript.InitializeRunTaskActivity()
at Microsoft.ServiceManager.WorkflowAuthoring.ActivityLibrary.CommandScript.Execute(ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.CompositeActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
at System.Workflow.Runtime.Scheduler.Run()
Does anyone know why this is or how to fix it?
I've tried twice now with the same results.
Cheers,
RobI gave up with this approach and created a custom activity for this workflow which is passed the same parameters and performs the same actions but works perfectly.
Did you ever find a reason for this error?
Maybe you are looking for
-
Hello Apple and the iTunes Windows PC users community. I am trying to sync films that I have converted from purchased DVD to mp4 format locally, not purchases from the online store. The mp4s all appear and play successfully in my iTunes application b
-
How to debug swc files in Flash CS5
Hi, to coin a familiar phrase "I'm new to Flash developement". My question is very simple. How do I debug .swc files (that I've created in Flash Builder 4) in Flash Professional CS5. I've incorporated the .swc file in the Publish Settings->Flash tab.
-
Set up Yosemite on my iMac and MacBook Pro - no problems. Now I just discovered that Airdrop is completely dead on both. They cannot find each other. Had no problems whatsoever with Mavericks and cannot find any guide for solving this. Sharing is als
-
Time machine always backs up same amount of data
When backing up with Time Machine it always backs up the same amount of data each time (140GB). I am not modifying 140GB of data each day or even each week so why does Time Machine always default to this amount of data? I would like TM to only backu
-
Serious Problem With iPod Nano/iTunes...
Hello all. 2 Months ago, I upgraded from a Dell Dimension 2800 to a 5100. I was using an iPod Shuffle. Upon connecting the device to my new computer, it would come up with 'iTunes cannot recognize the iPod' and so on. When trying to Restore Factory S